appassembler icon indicating copy to clipboard operation
appassembler copied to clipboard

Unquoted %JAVACMD% in Windows script crashes at runtime if %JAVACMD% contains whitespaces

Open sebjulliand opened this issue 5 years ago • 0 comments

Here in the Windows script, %JAVACMD% is unquoted:

%JAVACMD% %JAVA_OPTS%  -classpath %CLASSPATH% -Dapp.name="skipper" -Dapp.repo="%REPO%" -Dapp.home="%BASEDIR%" -Dbasedir="%BASEDIR%" com.arcadsoftware.skipper.cli.SkipperCLI %CMD_LINE_ARGS%
if %ERRORLEVEL% NEQ 0 goto error
goto end

It causes the script to crash if %JAVACMD% contains whitespaces. E.g.: C:\Program Files\Java\jdk8u252-b09\bin\java.exe

sebjulliand avatar Dec 18 '20 13:12 sebjulliand