Batch failes if Java Path contains whitespaces
envgap__dependency-check__DependencyCheck-5668
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
f99a590d9c4e052e4a49e1c67f7c2209467ca67c- Manifest
cli/pom.xml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
dependency-check/DependencyCheck #5668 · read the original issue
**Describe the bug** If the JAVACMD Path contains whitespaces the batch failes. **Version of dependency-check used** 8.2.1 **To Reproduce** Steps to reproduce the behavior: Call the bat file with a JAVACMD variable which contains whitespaces. It fails at line 82 or, if you escape the JAVACMD path with "" when it is called, it fails at line 68. **Expected behavior** The JAVACMD variable is escaped in line 68 and 82.
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]