diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-24 07:01:52 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-24 07:01:52 +0200 |
commit | bcee5a50db361abe7468de74c79194d394c8229e (patch) | |
tree | 2fc55f22574c26f648c5196d2b603d6c7beeda18 /runJavac | |
parent | 6d425594176e8493ecec4d5e958a2dcbd611eeb1 (diff) | |
download | lombok-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-x | runJavac | 29 |
1 files changed, 24 insertions, 5 deletions
@@ -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 |