mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Build directory fix.
This commit is contained in:
parent
63a9c1f159
commit
647b103fd2
1 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,7 @@ import com.beust.kobalt.maven.DepFactory
|
||||||
import com.beust.kobalt.maven.FileDependency
|
import com.beust.kobalt.maven.FileDependency
|
||||||
import com.beust.kobalt.maven.IClasspathDependency
|
import com.beust.kobalt.maven.IClasspathDependency
|
||||||
import com.beust.kobalt.maven.LocalRepo
|
import com.beust.kobalt.maven.LocalRepo
|
||||||
|
import com.beust.kobalt.misc.KFiles
|
||||||
import com.beust.kobalt.misc.KobaltExecutors
|
import com.beust.kobalt.misc.KobaltExecutors
|
||||||
import com.beust.kobalt.misc.log
|
import com.beust.kobalt.misc.log
|
||||||
import com.beust.kobalt.wrapper.ParentLastClassLoader
|
import com.beust.kobalt.wrapper.ParentLastClassLoader
|
||||||
|
@ -42,7 +43,11 @@ class KotlinCompiler @Inject constructor(val localRepo : LocalRepo,
|
||||||
log(1, " Compiling ${info.sourceFiles.size} files")
|
log(1, " Compiling ${info.sourceFiles.size} files")
|
||||||
}
|
}
|
||||||
val cp = compilerFirst(info.dependencies.map {it.jarFile.get()})
|
val cp = compilerFirst(info.dependencies.map {it.jarFile.get()})
|
||||||
val outputDir = (info.directory ?: "") + info.outputDir
|
val outputDir = if (info.directory != null) {
|
||||||
|
KFiles.joinDir(info.directory, info.outputDir.path)
|
||||||
|
} else {
|
||||||
|
info.outputDir.path
|
||||||
|
}
|
||||||
// kotlinc can accept a jar file as -d (which is super convenient) so only
|
// kotlinc can accept a jar file as -d (which is super convenient) so only
|
||||||
// create a directory if the output is not a jar file
|
// create a directory if the output is not a jar file
|
||||||
if (! outputDir.endsWith(".jar")) {
|
if (! outputDir.endsWith(".jar")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue