mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Invoke kotlinc's noExit entry point.
This commit is contained in:
parent
70b737f9df
commit
dffb75483d
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import com.beust.kobalt.internal.TaskResult
|
|||
import com.beust.kobalt.maven.*
|
||||
import com.beust.kobalt.misc.KobaltExecutors
|
||||
import com.beust.kobalt.misc.log
|
||||
import org.jetbrains.kotlin.cli.common.CLICompiler
|
||||
import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
|
||||
import java.io.File
|
||||
import javax.inject.Inject
|
||||
|
@ -52,7 +53,7 @@ class KotlinCompiler @Inject constructor(override val localRepo : LocalRepo,
|
|||
validateClasspath(classpathList)
|
||||
|
||||
log(2, "Compiling ${source.size()} files with classpath:\n " + classpathList.join("\n "))
|
||||
K2JVMCompiler.main(arrayOf(
|
||||
CLICompiler.doMainNoExit(K2JVMCompiler(), arrayOf(
|
||||
"-d", output,
|
||||
"-classpath", classpathList.join(File.pathSeparator), *source.toTypedArray(),
|
||||
*args.toTypedArray()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue