16
16
*******************************************************************************/
17
17
package io .sloeber .autoBuild .extensionPoint .providers ;
18
18
19
- import static io .sloeber .autoBuild .core .AutoBuildCommon .*;
19
+ import static io .sloeber .autoBuild .api .AutoBuildCommon .*;
20
20
import static io .sloeber .autoBuild .core .Messages .*;
21
21
import static io .sloeber .autoBuild .helpers .api .AutoBuildConstants .*;
22
22
@@ -165,9 +165,7 @@ public boolean invokeBuild(int kind, String targetName, IAutoBuildConfigurationD
165
165
if (parrallelNum > 1 ) {
166
166
executor = Executors .newFixedThreadPool (parrallelNum );
167
167
}
168
- // else {
169
- // executor=Executors.newSingleThreadExecutor();
170
- // }
168
+
171
169
for (IAutoBuildMakeRule curRule : myMakeRules ) {
172
170
if (curRule .getSequenceGroupID () != sequenceID ) {
173
171
continue ;
@@ -297,10 +295,6 @@ public static int launchCommand(String curRecipe, IAutoBuildConfigurationDescrip
297
295
CommandLauncher launcher = new CommandLauncher ();
298
296
launcher .showCommand (false );
299
297
String [] args = argumentsToArray (curRecipe );
300
- boolean useCMD =false ;
301
- if (useCMD ) {
302
- args =argumentsToArray ("cmd /d /q" );
303
- }
304
298
IPath commandPath = new Path (args [0 ]);
305
299
String [] onlyArgs = Arrays .copyOfRange (args , 1 , args .length );
306
300
@@ -310,14 +304,6 @@ public static int launchCommand(String curRecipe, IAutoBuildConfigurationDescrip
310
304
try {
311
305
fProcess = launcher .execute (commandPath , onlyArgs , autoData .getEnvironmentVariables (),
312
306
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 \r exit\n \r " .getBytes ());
318
- outputStream .close ();
319
- }
320
- }
321
307
} catch ( CoreException e1 ) {
322
308
e1 .printStackTrace ();
323
309
// ignore and handle null case
0 commit comments