mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix directories.
This commit is contained in:
parent
a2645c779c
commit
09c6f4c6ba
2 changed files with 4 additions and 3 deletions
|
@ -341,8 +341,9 @@ open class JvmCompilerPlugin @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
extraSourceFiles.addAll(contributedSourceDirs.filter { it.exists() }.map { it.path })
|
||||
val allSources= (sourceFiles + extraSourceFiles).distinct()
|
||||
val allSources = (sourceFiles + extraSourceFiles).distinct().filter { File(it).exists() }.map {
|
||||
File(projectDirectory, it).path
|
||||
}
|
||||
// Finally, alter the info with the compiler interceptors before returning it
|
||||
val initialActionInfo = CompilerActionInfo(projectDirectory.path, classpath, allSources,
|
||||
sourceSuffixes, buildDirectory, emptyList() /* the flags will be provided by flag contributors */)
|
||||
|
|
|
@ -73,7 +73,7 @@ class JavaCompiler @Inject constructor(val jvmCompiler: JvmCompiler) {
|
|||
}
|
||||
|
||||
allArgs.addAll(info.compilerArgs)
|
||||
allArgs.addAll(info.sourceFiles)
|
||||
allArgs.addAll(info.sourceFiles.filter { File(it).isFile })
|
||||
|
||||
val pb = ProcessBuilder(allArgs)
|
||||
pb.inheritIO()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue