]> gitweb.fperrin.net Git - DictionaryPC.git/blob - javalibs.sh
Attempt at using maven for compilation
[DictionaryPC.git] / javalibs.sh
1 set -e
2
3 if [ -z $ICU4J ]; then
4     ICU4J=/usr/share/java/icu4j.jar
5     ICU4J=/usr/share/java/com.ibm.icu-4.4.jar
6     test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar
7 fi
8 if [ ! -r "$ICU4J" ] ; then
9     echo "ICU4J needs to be installed"
10     exit 1;
11 fi
12
13 if [ -z "$JUNIT" ]; then
14     JUNIT=/usr/share/java/junit.jar
15     test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar
16 fi
17 if [ ! -r "$JUNIT" ] ; then
18     echo "Junit needs to be installed"
19     exit 1;
20 fi
21
22 if [ -z "$COMMONS_LANG3" ]; then
23     COMMONS_LANG3=/usr/share/java/commons-lang3.jar
24     test -r "$COMMONS_LANG3" || COMMONS_LANG3=/usr/share/commons-lang-3.3/lib/commons-lang.jar
25 fi
26 if [ ! -r "$COMMONS_LANG3" ] ; then
27     echo "commons-lang needs to be installed"
28     exit 1;
29 fi
30
31 if [ -z "$COMMONS_COMPRESS" ]; then
32     COMMONS_COMPRESS=/usr/share/java/commons-compress.jar
33 fi
34 if [ ! -r "$COMMONS_COMPRESS" ] ; then
35     echo "commons-compress needs to be installed"
36     exit 1;
37 fi
38
39 if [ ! -x ../Dictionary ] ; then
40     echo "You need to clone the Dictionary repository (including subprojects) into .."
41     exit 1
42 fi
43
44 if [ -z "$JAVA" ]; then
45     JAVA=/usr/lib/jvm/java-8-openjdk-amd64/bin/java
46 fi
47 if [ ! -r "$JAVA" ]; then
48     echo "could not find java at $JAVA"
49     exit 1
50 fi
51 JAVAC=${JAVA}c
52 if [ ! -r "$JAVAC" ]; then
53     echo "could not find javac at $JAVAC"
54     exit 1
55 fi
56