diff --git a/runners/katacoda/index.ts b/runners/katacoda/index.ts index 0ef680ca..6ed86299 100644 --- a/runners/katacoda/index.ts +++ b/runners/katacoda/index.ts @@ -140,15 +140,16 @@ export class Katacoda extends Runner { runBuildJava(step: Step, command: Command): RunResult{ - let cdCommand = this.changeCurrentDir(path.join("/root", "devonfw", "workspaces", "main", command.parameters[0]));; + let cdCommand = this.changeCurrentDir(path.join("/root", "devonfw", "workspaces", "main", command.parameters[0])); - let skipTestDescr = ""; - let skipTest = ""; - - if(command.parameters[1] == true){ - skipTest = '-Dmaven.test.skip=' + command.parameters[1]; - skipTestDescr = "We do not need to execute the test cases, so we can skip them by using the option '-Dmaven.test.skip=true'." + let skipTest = "-Dmaven.test.skip=true"; + let skipTestDescr = "We do not need to execute the test cases, so we can skip them by using the option '-Dmaven.test.skip=true'."; + + if(command.parameters.length == 2 && command.parameters[1] == true){ + skipTest = ""; + skipTestDescr = ""; } + this.steps.push({ "title": "Build the java project", "text": "step" + this.stepsCount + ".md"