[r17274]: stable / eXist-1.0.x / build.sh Maximize Restore History

Download this file

build.sh    34 lines (24 with data), 830 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
if [ -z "$EXIST_HOME" ]; then
P=$(dirname $0)
if test "$P" = "."
then
EXIST_HOME="`pwd`"
else
EXIST_HOME="$P"
fi
fi
ANT_HOME="$EXIST_HOME/tools/ant"
LOCALCLASSPATH=$CLASSPATH:$ANT_HOME/lib/ant-launcher.jar:$ANT_HOME/lib/junit.jar:.
JAVA_ENDORSED_DIRS="$EXIST_HOME"/lib/endorsed
JAVA_OPTS="-Dant.home=$ANT_HOME -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -Dexist.home=$EXIST_HOME"
echo Starting Ant...
echo
$JAVA_HOME/bin/java -Xms64000K -Xmx512000K $JAVA_OPTS -classpath $LOCALCLASSPATH org.apache.tools.ant.launch.Launcher $*