aboutsummaryrefslogtreecommitdiff
path: root/runJavac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-24 07:01:52 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-24 07:01:52 +0200
commitbcee5a50db361abe7468de74c79194d394c8229e (patch)
tree2fc55f22574c26f648c5196d2b603d6c7beeda18 /runJavac
parent6d425594176e8493ecec4d5e958a2dcbd611eeb1 (diff)
downloadlombok-bcee5a50db361abe7468de74c79194d394c8229e.tar.gz
lombok-bcee5a50db361abe7468de74c79194d394c8229e.tar.bz2
lombok-bcee5a50db361abe7468de74c79194d394c8229e.zip
javac's HandleData now generates the constructor only if it doesn't already exist, and the staticConstructor is now also completed. Left: toString, hashCode, equals.
Diffstat (limited to 'runJavac')
-rwxr-xr-xrunJavac29
1 files changed, 24 insertions, 5 deletions
diff --git a/runJavac b/runJavac
index 79e3c456..e7b4942b 100755
--- a/runJavac
+++ b/runJavac
@@ -1,10 +1,29 @@
#!/bin/sh
-if [ "$1" == "run" ]; then
- javac -cp ~/foo/lombok.jar ~/foo/*.java
-else
- ant && cp dist/lombok.jar ~/foo && javac -cp ~/foo/lombok.jar ~/foo/*.java
+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