mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Fix output compiler dir.
This commit is contained in:
parent
62a2ec5f74
commit
56fb059150
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import com.beust.kobalt.api.Project
|
|||
import com.beust.kobalt.internal.CompilerActionInfo
|
||||
import com.beust.kobalt.internal.ICompilerAction
|
||||
import com.beust.kobalt.internal.JvmCompiler
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
import com.beust.kobalt.misc.log
|
||||
import com.google.inject.Inject
|
||||
import com.google.inject.Singleton
|
||||
|
@ -21,7 +22,7 @@ class JavaCompiler @Inject constructor(val jvmCompiler: JvmCompiler) {
|
|||
|
||||
val allArgs = arrayListOf(
|
||||
executable.absolutePath,
|
||||
"-d", info.outputDir.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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue