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

Added kobaltCompilerSeparateProcess flag.

This commit is contained in:
Cedric Beust 2017-01-20 12:35:06 -08:00
parent 998972f022
commit a40b63eec4
3 changed files with 17 additions and 12 deletions

View file

@ -10,7 +10,6 @@ import com.google.inject.Inject
import com.google.inject.Singleton
import java.io.File
import java.io.FileInputStream
import java.lang.NumberFormatException
import javax.xml.bind.JAXBContext
import javax.xml.bind.annotation.XmlElement
import javax.xml.bind.annotation.XmlRootElement
@ -40,6 +39,9 @@ class KobaltSettingsXml {
@XmlElement(name = "kobaltCompilerFlags") @JvmField
var kobaltCompilerFlags: String? = null
@XmlElement(name = "kobaltCompilerSeparateProcess") @JvmField
var kobaltCompilerSeparateProcess: Boolean = false
}
class ProxiesXml {
@ -83,6 +85,12 @@ class KobaltSettings @Inject constructor(val xmlFile: KobaltSettingsXml) {
*/
val localMavenRepo = KFiles.makeDir(xmlFile.localMavenRepo)
/**
* If true, the Kotlin compiler will always be launched in a separate JVM, even if the requested
* version is the same as the internal version.
*/
val kobaltCompilerSeparateProcess = xmlFile.kobaltCompilerSeparateProcess
val defaultRepos = xmlFile.defaultRepos?.repo
val proxyConfigs = with(xmlFile.proxies?.proxy) {