Skip to content

Commit 3b80ac1

Browse files
committed
fix: Correct execing of Maven/Gradle
Should work OK as `exec` seems to always run with a shell even though `spawn` (used to locate the commands) does not. Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
1 parent e274e28 commit 3b80ac1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "Gauge support for VScode.",
99
"author": "ThoughtWorks",
1010
"license": "MIT",
11-
"version": "0.2.2",
11+
"version": "0.2.3",
1212
"publisher": "getgauge",
1313
"engines": {
1414
"vscode": "^1.82.0"

src/project/gradleProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class GradleProject extends GaugeProject {
2424

2525
public envs(cli: CLI): NodeJS.ProcessEnv {
2626
try {
27-
let classpath = execSync(`${cli.gradleCommand()} -q clean classpath`, {cwd: this.root()});
27+
let classpath = execSync(`${cli.gradleCommand().command} -q clean classpath`, {cwd: this.root()});
2828
return {[GAUGE_CUSTOM_CLASSPATH]: classpath.toString().trim() };
2929
} catch (e) {
3030
window.showErrorMessage(`Error calculating project classpath.\t\n${e.output.toString()}`);

src/project/mavenProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class MavenProject extends GaugeProject {
2323

2424
public envs(cli: CLI): NodeJS.ProcessEnv {
2525
try {
26-
let classpath = execSync(`${cli.mavenCommand()} -q gauge:classpath`, {cwd: this.root()});
26+
let classpath = execSync(`${cli.mavenCommand().command} -q gauge:classpath`, {cwd: this.root()});
2727
return {[GAUGE_CUSTOM_CLASSPATH]: classpath.toString().trim() };
2828
} catch (e) {
2929
window.showErrorMessage(`Error calculating project classpath.\t\n${e.output.toString()}`);

0 commit comments

Comments
 (0)