Minor: replace File::isFile with File::exists
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ internal class IncrementalJvmCompilerRunner(
|
|||||||
caches.incrementalCache.markOutputClassesDirty(dirtySources)
|
caches.incrementalCache.markOutputClassesDirty(dirtySources)
|
||||||
caches.incrementalCache.removeClassfilesBySources(dirtySources)
|
caches.incrementalCache.removeClassfilesBySources(dirtySources)
|
||||||
|
|
||||||
val (sourcesToCompile, removedKotlinSources) = dirtySources.partition { it.isFile }
|
val (sourcesToCompile, removedKotlinSources) = dirtySources.partition(File::exists)
|
||||||
if (sourcesToCompile.isNotEmpty()) {
|
if (sourcesToCompile.isNotEmpty()) {
|
||||||
reporter.report { "compile iteration: ${reporter.pathsAsString(sourcesToCompile)}" }
|
reporter.report { "compile iteration: ${reporter.pathsAsString(sourcesToCompile)}" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user