Skip to content

Commit

Permalink
IDE Launcher should set JVM options like kc.sh (keycloak#32189)
Browse files Browse the repository at this point in the history
Closes keycloak#32188

Signed-off-by: Alexander Schwartz <[email protected]>
  • Loading branch information
ahus1 authored Aug 16, 2024
1 parent ce07ad2 commit b0dfef0
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
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<String> devArgs = new ArrayList<>(Picocli.parseArgs(args));

if (System.getProperty("kc.home.dir") == null) {
Expand Down

0 comments on commit b0dfef0

Please sign in to comment.