A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/4482 below:

[cli] pmd.bat can only be executed once · Issue #4482 · pmd/pmd · GitHub

Affects PMD Version: 7.0.0-rc1

Description:

When running PMD on the commandline a second time, the following error is displayed:

"C:\pmd-bin-7.0.0-rc1\bin.."\lib*] was unexpected at this time.

The reason is, that with the first run, we set "classpath" env variable (but don't use it - that's another error). The second time, it is set and we fail on this comparison:

if [%CLASSPATH%] NEQ [] (

Additionally, if there is no java on the PATH, then the script fails with the following not helpful message:

"(" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

Sorry, it's German. Is something like "(" can syntactically not be processed, or in short: syntax error.

This seems to happen on this line:

if /I %jvendor% == java (

"%vender%" is empty in that case...

And one more thing: It seems, we don't need to mention the extension "bat" when executing PMD, so we can simplify our quickstart guides on pmd.github.io and https://docs.pmd-code.org/latest/pmd_userdocs_installation.html - thanks to the unified shell script, the command is now simply "pmd" on all platforms...

reported by: Bharath Kumar M in gitter chat

Running PMD through: CLI


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4