Setting property that controls application environment lifetime for daemon builds

Original commit: 376c188cf7
This commit is contained in:
Ilya Chernikov
2015-10-19 15:10:54 +02:00
parent 1bd1fbeee4
commit 79a82d9466
@@ -136,6 +136,10 @@ public object KotlinCompilerRunner {
val compilerId = CompilerId.makeCompilerId(File(libPath, "kotlin-compiler.jar"))
val daemonOptions = configureDaemonOptions()
val daemonJVMOptions = configureDaemonJVMOptions(true)
// the property should be set by default for daemon builds to avoid parallel building problems
// but it cannot be currently set by default globally, because it seems breaks many tests
// TODO: find out how to get rid of the property and make it the default behavior
daemonJVMOptions.jvmParams.add("Dkotlin.environment.keepalive")
val daemonReportMessages = ArrayList<DaemonReportMessage>()