X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=compile.sh;h=0d577aa68d7ff364b1c5aeb4c42a83b03acccc3a;hb=4e1cfc57d8ef4ed212dc0e9eed79c1666c937c7f;hp=7c1ad839c6da60892a1f2e45b39c9b22ab79cdae;hpb=b7b04d01f8d0ed763f0817d0531ecebf9ff50260;p=DictionaryPC.git diff --git a/compile.sh b/compile.sh index 7c1ad83..0d577aa 100755 --- a/compile.sh +++ b/compile.sh @@ -2,9 +2,8 @@ ICU4J=/usr/share/java/icu4j-49.1.jar test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar JUNIT=/usr/share/java/junit.jar test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar -XERCES=/usr/share/java/xercesImpl.jar -test -r "$XERCES" || XERCES=/usr/share/xerces-2/lib/xercesImpl.jar -COMMONS=/usr/share/java/commons-text.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 .." @@ -18,10 +17,6 @@ if [ ! -r "$JUNIT" ] ; then echo "Junit needs to be installed" exit 1; fi -if [ ! -r "$XERCES" ] ; then - echo "Xerces needs to be installed" - exit 1; -fi if [ ! -r "$COMMONS" ] ; then echo "commons-lang needs to be installed" exit 1; @@ -33,4 +28,5 @@ fi mkdir -p bin # -encoding is just a work around for user that still run systems # with non-UTF8 locales -javac --limit-modules java.xml,java.logging -Xlint:all -encoding UTF-8 -g -d bin/ ../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:$COMMONS:$COMMONS_COMPRESS" +# Limit to Java 11 for compatibility with native-image +javac --source 11 --target 11 --limit-modules java.xml,java.logging -Xlint:all -encoding UTF-8 -g -d bin/ ../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:$COMMONS:$COMMONS_COMPRESS"