diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-29 07:40:19 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-29 07:51:28 -0500 |
commit | d8a573906e8a1d3c60f0501bebeda95a4adee774 (patch) | |
tree | 086200fb4acdc9918b7e802c25b17f442529b7da /cbt | |
parent | 7a99e875a5818e9eeacb51f9f4ceb139b5235043 (diff) | |
download | cbt-d8a573906e8a1d3c60f0501bebeda95a4adee774.tar.gz cbt-d8a573906e8a1d3c60f0501bebeda95a4adee774.tar.bz2 cbt-d8a573906e8a1d3c60f0501bebeda95a4adee774.zip |
use same status file as for other places for nailgun_launcher
Diffstat (limited to 'cbt')
-rwxr-xr-x | cbt | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -163,7 +163,7 @@ fi stage1 () { log "Checking for changes in cbt/nailgun_launcher" "$@" - NAILGUN_INDICATOR=$NAILGUN$TARGET/cbt/NailgunLauncher.class + NAILGUN_INDICATOR=$NAILGUN$TARGET../classes.last-success changed=0 for file in `ls $NAILGUN/*.java`; do if [ $file -nt $NAILGUN_INDICATOR ]; then changed=1; fi @@ -172,11 +172,11 @@ stage1 () { if [ $changed -eq 1 ]; then #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") javac -Xlint:deprecation -Xlint:unchecked -d $NAILGUN$TARGET `ls $NAILGUN*.java` compiles=$? - if [ $compiles -ne 0 ]; then - rm $NAILGUN$TARGET/cbt/*.class 2>/dev/null # triggers recompilation next time. - break + if [ $compiles -eq 0 ]; then + touch -t $COMPILE_TIME $NAILGUN_INDICATOR fi if [ $use_nailgun -eq 0 ]; then echo "Stopping background process (nailgun)" 1>&2 |