File: build.sh

package info (click to toggle)
libbsf-java 1%3A2.2-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,168 kB
  • ctags: 981
  • sloc: java: 5,927; cpp: 2,514; xml: 231; ansic: 182; makefile: 95; sh: 20
file content (31 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
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
#!/bin/sh

echo
echo "Bsf Build System"
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

ANT_HOME=/usr/share/ant
LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$CLASSPATH

for A in /usr/share/java/* ; do
    LOCALCLASSPATH="$LOCALCLASSPATH:$A"
done

echo
echo Building with classpath $LOCALCLASSPATH

#chmod 0755 $ANT_HOME/bin/antRun

echo
echo Starting Ant...

#$JAVA_HOME/bin/java  -ss20000000 -mx40000000 -Dant.home=$ANT_HOME -classpath $LOCALCLASSPATH org.apache.tools.ant.Main $*
$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath $LOCALCLASSPATH org.apache.tools.ant.Main $*