From 3b1d60f41c2692548f27ce9d8e3679f87d884e33 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 13 Dec 2024 03:35:55 +0100 Subject: [PATCH] Shorten JVM options --- testapp/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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")