@@ -365,18 +365,7 @@ compileFile(/*outfile*/configureNightlyJs,
365
365
/*callback*/ function ( ) {
366
366
var cmd = "node " + configureNightlyJs + " " + packageJson + " " + programTs ;
367
367
console . log ( cmd ) ;
368
- var ex = jake . createExec ( [ cmd ] ) ;
369
- // Add listeners for output and error
370
- ex . addListener ( "stdout" , function ( output ) {
371
- process . stdout . write ( output ) ;
372
- } ) ;
373
- ex . addListener ( "stderr" , function ( error ) {
374
- process . stderr . write ( error ) ;
375
- } ) ;
376
- ex . addListener ( "cmdEnd" , function ( ) {
377
- complete ( ) ;
378
- } ) ;
379
- ex . run ( ) ;
368
+ exec ( cmd , completeHandler , errorHandler )
380
369
} ) ;
381
370
382
371
task ( "setDebugModeTrue" , function ( ) {
@@ -387,18 +376,7 @@ desc("Configure, build, test, and publish the nightly release.");
387
376
task ( "publish-nightly" , [ configureNightlyJs , "LKG" , "clean" , "setDebugModeTrue" , "runtests" ] , function ( ) {
388
377
var cmd = "npm publish" ;
389
378
console . log ( cmd ) ;
390
- var ex = jake . createExec ( [ cmd ] ) ;
391
- // Add listeners for output and error
392
- ex . addListener ( "stdout" , function ( output ) {
393
- process . stdout . write ( output ) ;
394
- } ) ;
395
- ex . addListener ( "stderr" , function ( error ) {
396
- process . stderr . write ( error ) ;
397
- } ) ;
398
- ex . addListener ( "cmdEnd" , function ( ) {
399
- complete ( ) ;
400
- } ) ;
401
- ex . run ( ) ;
379
+ exec ( cmd , completeHandler , errorHandler )
402
380
} , { async : true } ) ;
403
381
404
382
// Local target to build the compiler and services
0 commit comments