From 0963010a517fdc8c040b10c98922d7f818960e78 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Tue, 29 Nov 2016 07:49:58 -0500 Subject: speed up compile when stopping nailgun launcher --- cbt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cbt') diff --git a/cbt b/cbt index 697409f..69f4cb4 100755 --- a/cbt +++ b/cbt @@ -170,6 +170,8 @@ stage1 () { done compiles=0 if [ $changed -eq 1 ]; then + echo "Stopping background process (nailgun) if running" 1>&2 + $NG ng-stop >> $nailgun_out 2>> $nailgun_err & #rm $NAILGUN$TARGET/cbt/*.class 2>/dev/null # defensive delete of potentially broken class files echo "Compiling cbt/nailgun_launcher" 1>&2 COMPILE_TIME=$(date -j +%YY%mm%dd%HH%MM.%SS|sed "s/[YmdHMS]//g") @@ -179,9 +181,6 @@ stage1 () { touch -t $COMPILE_TIME $NAILGUN_INDICATOR fi if [ $use_nailgun -eq 0 ]; then - echo "Stopping background process (nailgun)" 1>&2 - $NG ng-stop >> $nailgun_out 2>> $nailgun_err & - sleep 1 echo "Restarting background process (nailgun)" 1>&2 ng-server 127.0.0.1:$NAILGUN_PORT >> $nailgun_out 2>> $nailgun_err & sleep 1 -- cgit v1.2.3