mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Indent.
This commit is contained in:
parent
bd6dfb494f
commit
3ffbcf9d06
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue