From c1cf306b92364d4151f9cab572955ca9536f30b6 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Tabata Date: Mon, 7 Jun 2021 15:08:30 +0900 Subject: [PATCH] KEYCLOAK-18364 start-up with kc.bat fails if folder name includes space --- distribution/server-x-dist/src/main/content/bin/kc.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/server-x-dist/src/main/content/bin/kc.bat b/distribution/server-x-dist/src/main/content/bin/kc.bat index 82d5cdc7e8..1a3937ae68 100644 --- a/distribution/server-x-dist/src/main/content/bin/kc.bat +++ b/distribution/server-x-dist/src/main/content/bin/kc.bat @@ -19,7 +19,7 @@ if "%OS%" == "Windows_NT" ( set DIRNAME=.\ ) -set "SERVER_OPTS=-Dkc.home.dir=%DIRNAME%.. -Djboss.server.config.dir=%DIRNAME%..\conf -Dkeycloak.theme.dir=%DIRNAME%..\themes -Djava.util.logging.manager=org.jboss.logmanager.LogManager" +set "SERVER_OPTS=-Djava.util.logging.manager=org.jboss.logmanager.LogManager" set DEBUG_MODE=false set DEBUG_PORT_VAR=8787 @@ -105,6 +105,6 @@ if "x%JAVA_HOME%" == "x" ( set "CLASSPATH_OPTS=%DIRNAME%..\lib\quarkus-run.jar;%DIRNAME%..\lib\lib\main\*.*" -"%JAVA%" %JAVA_OPTS% %SERVER_OPTS% -cp %CLASSPATH_OPTS% io.quarkus.bootstrap.runner.QuarkusEntryPoint %CONFIG_ARGS% +"%JAVA%" %JAVA_OPTS% -Dkc.home.dir="%DIRNAME%.." -Djboss.server.config.dir="%DIRNAME%..\conf" -Dkeycloak.theme.dir="%DIRNAME%..\themes" %SERVER_OPTS% -cp "%CLASSPATH_OPTS%" io.quarkus.bootstrap.runner.QuarkusEntryPoint %CONFIG_ARGS% :END \ No newline at end of file