Skip to content

Commit 510beea

Browse files
author
jan
committed
Cleanup testing clutter
1 parent 7dfd5d7 commit 510beea

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

io.sloeber.autoBuild/src/io/sloeber/autoBuild/extensionPoint/providers/InternalBuildRunner.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*******************************************************************************/
1717
package io.sloeber.autoBuild.extensionPoint.providers;
1818

19-
import static io.sloeber.autoBuild.core.AutoBuildCommon.*;
19+
import static io.sloeber.autoBuild.api.AutoBuildCommon.*;
2020
import static io.sloeber.autoBuild.core.Messages.*;
2121
import static io.sloeber.autoBuild.helpers.api.AutoBuildConstants.*;
2222

@@ -165,9 +165,7 @@ public boolean invokeBuild(int kind, String targetName, IAutoBuildConfigurationD
165165
if (parrallelNum > 1) {
166166
executor = Executors.newFixedThreadPool(parrallelNum);
167167
}
168-
// else {
169-
// executor=Executors.newSingleThreadExecutor();
170-
// }
168+
171169
for (IAutoBuildMakeRule curRule : myMakeRules) {
172170
if (curRule.getSequenceGroupID() != sequenceID) {
173171
continue;
@@ -297,10 +295,6 @@ public static int launchCommand(String curRecipe, IAutoBuildConfigurationDescrip
297295
CommandLauncher launcher = new CommandLauncher();
298296
launcher.showCommand(false);
299297
String[] args = argumentsToArray(curRecipe);
300-
boolean useCMD=false;
301-
if(useCMD) {
302-
args=argumentsToArray("cmd /d /q");
303-
}
304298
IPath commandPath = new Path(args[0]);
305299
String[] onlyArgs = Arrays.copyOfRange(args, 1, args.length);
306300

@@ -310,14 +304,6 @@ public static int launchCommand(String curRecipe, IAutoBuildConfigurationDescrip
310304
try {
311305
fProcess = launcher.execute(commandPath, onlyArgs, autoData.getEnvironmentVariables(),
312306
autoData.getBuildFolder().getLocation(), monitor);
313-
if(useCMD) {
314-
try(OutputStream outputStream=fProcess.getOutputStream()){
315-
outputStream.write(curRecipe.getBytes());
316-
outputStream.flush();
317-
outputStream.write("\n\rexit\n\r".getBytes());
318-
outputStream.close();
319-
}
320-
}
321307
} catch ( CoreException e1) {
322308
e1.printStackTrace();
323309
// ignore and handle null case

0 commit comments

Comments
 (0)