X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=compile.sh;h=7b0021f4b9f7f6ffa2201a487ebccad7b51ca145;hb=f37d4e6b31795ca783ab34c4fff7a388f92090ac;hp=7a67e88bddb0088f1635e166c2b9c608cf46af73;hpb=929387f3294346accc6e3eaa514558b446a8e474;p=DictionaryPC.git diff --git a/compile.sh b/compile.sh index 7a67e88..7b0021f 100755 --- a/compile.sh +++ b/compile.sh @@ -6,6 +6,7 @@ XERCES=/usr/share/java/xercesImpl.jar test -r "$XERCES" || XERCES=/usr/share/xerces-2/lib/xercesImpl.jar COMMONS=/usr/share/java/commons-lang3.jar test -r "$COMMONS" || COMMONS=/usr/share/commons-lang-3.3/lib/commons-lang.jar +COMMONS_COMPRESS=/usr/share/java/commons-compress.jar if [ ! -x ../Dictionary ] ; then echo "You need to clone the Dictionary repository (including subprojects) into .." exit 1 @@ -26,4 +27,8 @@ if [ ! -r "$COMMONS" ] ; then echo "commons-lang needs to be installed" exit 1; fi -javac -g ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS" +if [ ! -r "$COMMONS_COMPRESS" ] ; then + echo "commons-compress needs to be installed" + exit 1; +fi +javac -g ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS:$COMMONS_COMPRESS"