Skip to content

Commit 05f2850

Browse files
authored
Merge pull request #60 from denise-khuu/feature/katacodabuildJava
Feature/katacodabuild java
2 parents 1bcfaac + 2f28446 commit 05f2850

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

runners/katacoda/index.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,16 @@ export class Katacoda extends Runner {
161161

162162
runBuildJava(step: Step, command: Command): RunResult{
163163

164-
let cdCommand = this.changeCurrentDir(path.join("/root", "devonfw", "workspaces", "main", command.parameters[0]));;
164+
let cdCommand = this.changeCurrentDir(path.join("/root", "devonfw", "workspaces", "main", command.parameters[0]));
165165

166-
let skipTestDescr = "";
167-
let skipTest = "";
168-
169-
if(command.parameters[1] == true){
170-
skipTest = '-Dmaven.test.skip=' + command.parameters[1];
171-
skipTestDescr = "We do not need to execute the test cases, so we can skip them by using the option '-Dmaven.test.skip=true'."
166+
let skipTest = "-Dmaven.test.skip=true";
167+
let skipTestDescr = "We do not need to execute the test cases, so we can skip them by using the option '-Dmaven.test.skip=true'.";
168+
169+
if(command.parameters.length == 2 && command.parameters[1] == true){
170+
skipTest = "";
171+
skipTestDescr = "";
172172
}
173+
173174
this.steps.push({
174175
"title": "Build the java project",
175176
"text": "step" + this.stepsCount + ".md"

0 commit comments

Comments
 (0)