1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Don't cd to project's directory when compiling with Java.

This commit is contained in:
Cedric Beust 2015-11-10 14:35:27 -08:00
parent ee88bac39f
commit 48ba30ba47

View file

@ -31,9 +31,9 @@ class JavaCompiler @Inject constructor(val jvmCompiler: JvmCompiler) {
allArgs.addAll(info.sourceFiles)
val pb = ProcessBuilder(allArgs)
info.directory?.let {
pb.directory(File(it))
}
// info.directory?.let {
// pb.directory(File(it))
// }
pb.inheritIO()
val line = allArgs.joinToString(" ")
log(2, " Compiling $line")