From 010b57ba41195534faf7c38afc2cc166058ac0c7 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 27 Sep 2024 20:50:01 +0200 Subject: [PATCH] Upgrade PMD from 7.0.0 to 7.6.0 (#176) --- CHANGELOG.md | 1 + package.json | 2 +- src/lib/apexPmd.ts | 7 +------ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5da8493..7d24b32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump webpack from 5.88.2 to 5.94.0 by @dependabot in [#172](https://github.com/ChuckJonas/vscode-apex-pmd/pull/172) - Improve PMD update procedure by @adangel in [#174](https://github.com/ChuckJonas/vscode-apex-pmd/pull/174) - Bump micromatch from 4.0.5 to 4.0.8 by @adangel in [#175](https://github.com/ChuckJonas/vscode-apex-pmd/pull/175) +- Upgrade PMD from 7.0.0 to 7.6.0 by @adangel in [#176](https://github.com/ChuckJonas/vscode-apex-pmd/pull/176) ### Deprecated ### Removed diff --git a/package.json b/package.json index 50ead1b..6e05b73 100644 --- a/package.json +++ b/package.json @@ -167,7 +167,7 @@ } }, "config": { - "pmdVersion": "7.0.0" + "pmdVersion": "7.6.0" }, "scripts": { "postinstall": "pmd-packager/upgrade.sh", diff --git a/src/lib/apexPmd.ts b/src/lib/apexPmd.ts index d3d2df1..1beceb1 100644 --- a/src/lib/apexPmd.ts +++ b/src/lib/apexPmd.ts @@ -140,12 +140,7 @@ export class ApexPmd { ].join(CLASSPATH_DELM); let env : NodeJS.ProcessEnv = {}; - if (os.platform() === 'win32') { - // add surrounding quotes in case workspaceRootPath or additionalClassPaths contains spaces - env["CLASSPATH"] = `"${classPath}"`; - } else { - env["CLASSPATH"] = `${classPath}`; - } + env["CLASSPATH"] = `${classPath}`; if (this.config.jrePath) { if (os.platform() === 'win32') { // add surrounding quotes in case jrePath contains spaces