diff --git a/testapp/build.gradle.kts b/testapp/build.gradle.kts index 944d142..7e79036 100644 --- a/testapp/build.gradle.kts +++ b/testapp/build.gradle.kts @@ -47,14 +47,14 @@ application { // -> JVM jvmArgs.add("-XX:+UnlockDiagnosticVMOptions") - if (hasProperty("run.args.logGC") && property("run.args.logGC") as String == "true") + if (hasProperty("jvm.logGC") && property("jvm.logGC") as String == "true") jvmArgs.add("-Xlog:gc") - if (hasProperty("run.args.logJITandAOT") && property("run.args.logJITandAOT") as String == "true") { + if (hasProperty("jvm.logJITandAOT") && property("jvm.logJITandAOT") as String == "true") { jvmArgs.add("-XX:+PrintCompilation") jvmArgs.add("-XX:+PrintInlining") } - if (hasProperty("run.args.garbageCollector")) - when (property("run.args.garbageCollector")) { + if (hasProperty("jvm.garbageCollector")) + when (property("jvm.garbageCollector")) { "epsilon" -> jvmArgs.add("-XX:+UseEpsilonGC") "serial" -> jvmArgs.add("-XX:+UseSerialGC") "g1" -> jvmArgs.add("-XX:+UseG1GC")