Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #181: Call PMD via java directly, don't use pmd.bat anymore #187

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

adangel
Copy link
Collaborator

@adangel adangel commented Nov 29, 2024

The culprit is the '&' character in the workspace path...
If not within quotes, this is interpreted as conditional operator -> https://ss64.com/nt/syntax-conditional.html

This PR changes now how we call PMD: we don't use pmd.bat anymore, so we don't need to think about when to quote, what to quote or escape (cmdline behave different then batch file execution in terms of quoting...).

This also enables us to use a PMD distribution without pmd.bat, see #177 .

This additionally fixes a problem with the jrePath - I think, this didn't work for a while. Now we have also a test for that configuration option.

@adangel adangel changed the title Add test case for #181 Fix #181: Call PMD via java directly, don't use pmd.bat anymore Nov 29, 2024
@adangel adangel added this to the next milestone Nov 29, 2024
@adangel adangel marked this pull request as ready for review November 29, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workspace path with special characters under Windows: PMD will run in CLI, but not in VS Code
1 participant