1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-07-05 23:34:20 -08:00
parent 3ffbcf9d06
commit 9bb3b11128

View file

@ -110,7 +110,9 @@ class CompilerUtils @Inject constructor(val files: KFiles,
! KFiles.isResource(it.path)
}.distinct()
// 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. Note that
// depending on the compiler's ability, sourceFiles can actually contain a list of directories
// instead of individual source files.
val projectDirectory = File(project.directory)
val sourceFiles = if (compiler.canCompileDirectories) {
allSourceDirectories.map { File(projectDirectory, it.path).path }