blob: e7b4942b228fb3d4f837ab11da9eb77e154d6c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
CONTINUE=0
if [ "$1" != "run" ]; then
echo BUILDING...
ant && cp dist/lombok.jar ~/foo
CONTINUE=$?
fi
if [ $CONTINUE -eq 0 ]; then
echo COMPILING...
javac -cp ~/foo/lombok.jar ~/foo/*.java
CONTINUE=$?
fi
if [ "$2" == "javap" ]; then
if [ $CONTINUE -eq 0 ]; then
echo DECOMPILING...
shift
shift
javap -classpath /Users/rzwitserloot/foo/lombok.jar:/Users/rzwitserloot/foo $@
fi
elif [ "$2" != "" ]; then
if [ $CONTINUE -eq 0 ]; then
echo RUNNING...
shift
java -cp /Users/rzwitserloot/foo/lombok.jar:/Users/rzwitserloot/foo $@
fi
fi
|