git.haldean.org droidcopter / 7837d03
Updated run and unit to delete stale class files in nav package Will Brown 11 years ago
2 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3030 clean() {
3131 echo "Clean old classfiles" 1>&2
3232 rm -f org/haldean/chopper/server/*.class
33 rm -f org/haldean/chopper/server/nav/*.class
3334 echo "Clean backup java files" 1>&2
3435 rm -f org/haldean/chopper/server/*.java\~
36 rm -f org/haldean/chopper/server/nav/*.java\~
3537 }
3638
3739 run() {
55 echo "Must supply a class to test" 1>&2
66 else
77 echo "Running test for class $1" 1>&2
8 rm org/haldean/chopper/server/{,nav/}*.class
89 javac -cp $CLASSPATH "org/haldean/chopper/server/$1.java" && \
910 echo "Compiled" 1>&2 && \
1011 java -Djava.library.path=jars/worldwind/:/lib/:jars/ \