From b0dfef0c60381647f9a158201dc1fc6eca30d068 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Fri, 16 Aug 2024 15:56:48 +0200 Subject: [PATCH] IDE Launcher should set JVM options like kc.sh (#32189) Closes #32188 Signed-off-by: Alexander Schwartz --- .../org/keycloak/quarkus/_private/IDELauncher.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java b/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java index 0dd254fb0a..86d4dcea5a 100644 --- a/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java +++ b/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java @@ -29,6 +29,18 @@ import io.quarkus.runtime.Quarkus; public class IDELauncher { public static void main(String[] args) { + if (System.getProperty("java.util.logging.manager") == null) { + System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager"); + } + + if (System.getProperty("picocli.disable.closures") == null) { + System.setProperty("picocli.disable.closures", "true"); + } + + if (System.getProperty("java.util.concurrent.ForkJoinPool.common.threadFactory") == null) { + System.setProperty("java.util.concurrent.ForkJoinPool.common.threadFactory", "io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory"); + } + List devArgs = new ArrayList<>(Picocli.parseArgs(args)); if (System.getProperty("kc.home.dir") == null) {