Precondition
Describe the bug
The dependencty-check.bat script does not expand %JAVACMD% safely.
Version of dependency-check used
The problem occurs using version 12.1.1 of the cli.
To Reproduce
Steps to reproduce the behavior:
set JAVACMD=C:\Program Files\Eclipse Adoptium\jdk-21.0.6.7-hotspot\bin\java.exe
dependency-check.bat
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
set JAVACMD="C:\Program Files\Eclipse Adoptium\jdk-21.0.6.7-hotspot\bin\java.exe"
dependency-check.bat
Files\Eclipse was unexpected at this time.
Expected behavior
Script should successfully execute.
Additional context
Regression of #5668.
Precondition
Describe the bug
The dependencty-check.bat script does not expand
%JAVACMD%safely.Version of dependency-check used
The problem occurs using version 12.1.1 of the cli.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Script should successfully execute.
Additional context
Regression of #5668.