File: build.sh

package info (click to toggle)
werken.xpath 0.9.4-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,564 kB
  • sloc: java: 3,115; xml: 1,144; sh: 31; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

echo
echo "Building..."
echo

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

  JAVA_CP=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dev.jar
  JDOM_CP=./lib/jdom.jar
 ANTLR_CP=./lib/antlr-all.jar
XERCES_CP=./lib/xerces.jar
   ANT_CP=./lib/ant.jar

 ANT_HOME=./lib

CP=$JAVA_CP:$JDOM_CP:$ANTLR_CP:$XERCES_CP:$ANT_CP

echo Building with classpath $CP
echo

echo Starting Ant...
echo

#strace $JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath $CP org.apache.tools.ant.Main $*
$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath $CP org.apache.tools.ant.Main $*