mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Fix Java source directory.
This commit is contained in:
parent
3dc039e956
commit
eae780308c
1 changed files with 3 additions and 4 deletions
|
@ -313,7 +313,7 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
// 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 { it.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) } })
|
||||||
|
@ -341,9 +341,8 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val allSources = (sourceFiles + extraSourceFiles).distinct().filter { File(it).exists() }.map {
|
val allSources = (sourceFiles + extraSourceFiles).distinct().filter { File(it).exists() }
|
||||||
File(projectDirectory, it).path
|
|
||||||
}
|
|
||||||
// Finally, alter the info with the compiler interceptors before returning it
|
// Finally, alter the info with the compiler interceptors before returning it
|
||||||
val initialActionInfo = CompilerActionInfo(projectDirectory.path, classpath, allSources,
|
val initialActionInfo = CompilerActionInfo(projectDirectory.path, classpath, allSources,
|
||||||
sourceSuffixes, buildDirectory, emptyList() /* the flags will be provided by flag contributors */)
|
sourceSuffixes, buildDirectory, emptyList() /* the flags will be provided by flag contributors */)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue