IDE Launcher should set JVM options like kc.sh (#32189)

Closes #32188

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2024-08-16 15:56:48 +02:00 committed by GitHub
parent ce07ad25a7
commit b0dfef0c60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,18 @@ import io.quarkus.runtime.Quarkus;
public class IDELauncher { public class IDELauncher {
public static void main(String[] args) { 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<String> devArgs = new ArrayList<>(Picocli.parseArgs(args)); List<String> devArgs = new ArrayList<>(Picocli.parseArgs(args));
if (System.getProperty("kc.home.dir") == null) { if (System.getProperty("kc.home.dir") == null) {