Skip to content

Batch failes if Java Path contains whitespaces #5668

@jsc57x

Description

@jsc57x

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions