mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix arguments for javac launches.
This commit is contained in:
parent
f1730b30c8
commit
59c5e2871e
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ class JavaCompiler @Inject constructor(val jvmCompiler: JvmCompiler) {
|
|||
val allArgs = arrayListOf(
|
||||
executable.absolutePath,
|
||||
"-d", KFiles.makeDir(info.directory!!, info.outputDir.path).path)
|
||||
|
||||
if (info.dependencies.size > 0) {
|
||||
allArgs.add("-classpath")
|
||||
allArgs.add(info.dependencies.map { it.jarFile.get() }.joinToString(File.pathSeparator))
|
||||
}
|
||||
|
||||
allArgs.addAll(info.sourceFiles)
|
||||
|
||||
val pb = ProcessBuilder(allArgs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue