KEYCLOAK-10875 Adding quotes around the path to the JAR in case %DIRNAME% contains spaces

This commit is contained in:
Tommy Odom 2019-07-17 08:22:47 -04:00 committed by Stian Thorgersen
parent 0d12b8dd5a
commit 6f86c6d253

View file

@ -5,4 +5,4 @@ if "%OS%" == "Windows_NT" (
) else (
set DIRNAME=.\
)
java %KC_OPTS% -cp %DIRNAME%\client\keycloak-admin-cli-${project.version}.jar org.keycloak.client.admin.cli.KcAdmMain %*
java %KC_OPTS% -cp "%DIRNAME%\client\keycloak-admin-cli-${project.version}.jar" org.keycloak.client.admin.cli.KcAdmMain %*