1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00
This commit is contained in:
Cedric Beust 2016-07-05 23:25:02 -08:00
parent bd6dfb494f
commit 3ffbcf9d06

View file

@ -113,12 +113,12 @@ class CompilerUtils @Inject constructor(val files: KFiles,
// Now that we have all the source directories, find all the source files in them // Now that we have all the source directories, find all the source files in them
val projectDirectory = File(project.directory) val projectDirectory = File(project.directory)
val sourceFiles = if (compiler.canCompileDirectories) { val sourceFiles = if (compiler.canCompileDirectories) {
allSourceDirectories.map { File(projectDirectory, it.path).path } allSourceDirectories.map { File(projectDirectory, it.path).path }
} else { } else {
files.findRecursively(projectDirectory, allSourceDirectories, files.findRecursively(projectDirectory, allSourceDirectories,
{ file -> sourceSuffixes.any { file.endsWith(it) } }) { file -> sourceSuffixes.any { file.endsWith(it) } })
.map { File(projectDirectory, it).path } .map { File(projectDirectory, it).path }
} }
// Special treatment if we are compiling Kotlin files and the project also has a java source // Special treatment if we are compiling Kotlin files and the project also has a java source
// directory. In this case, also pass that java source directory to the Kotlin compiler as is // directory. In this case, also pass that java source directory to the Kotlin compiler as is