File tree 1 file changed +2
-2
lines changed
modules/bcv-gradle-plugin/src/main/kotlin/tasks
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ abstract class BCVApiCheckTask @Inject constructor(
88
88
val builtFilePath = allBuiltFilePaths.singleOrNull()
89
89
? : error(" Expected a single file ${expectedProjectName.get()} .api, but found ${allBuiltFilePaths.size} : $allBuiltFilePaths " )
90
90
91
- if (builtFilePath !in allCheckFilePaths) {
91
+ if (builtApiDeclaration == null || builtFilePath !in allCheckFilePaths) {
92
92
val relativeDirPath = projectApiDir.get().toRelativeString(rootDir) + File .separator
93
93
error(
94
94
" File ${builtFilePath.lastName} is missing from ${relativeDirPath} , please run '$apiDumpTaskPath ' task to generate one"
@@ -97,7 +97,7 @@ abstract class BCVApiCheckTask @Inject constructor(
97
97
98
98
val diff = compareFiles(
99
99
checkFile = checkApiDeclaration,
100
- builtFile = builtFilePath.getFile( builtApiDeclaration!! .parentFile !! ) ,
100
+ builtFile = builtApiDeclaration,
101
101
)
102
102
val diffSet = mutableSetOf<String >()
103
103
if (diff != null ) diffSet.add(diff)
You can’t perform that action at this time.
0 commit comments