File: build.sh

package info (click to toggle)
cocoon 1.8-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 12,016 kB
  • ctags: 3,793
  • sloc: xml: 16,682; java: 8,089; sh: 174; makefile: 61
file content (29 lines) | stat: -rw-r--r-- 956 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
#!/bin/sh

echo
echo "Cocoon 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=/usr/lib/jdk1.1/lib/classes.zip:`echo lib/*.jar | tr ' ' ':'`:$CLASSPATH
LOCALCLASSPATH=$JAVA_HOME/lib/classes.zip:$JAVA_HOME/lib/tools.jar:`echo /usr/share/java/*.jar | tr ' ' ':'`:`echo ./lib/*.jar | tr ' ' ':'`:$CLASSPATH:
LOCALCLASSPATH=${LOCALCLASSPATH//\/usr\/share\/java\/fop.jar:/}
LOCALCLASSPATH=${LOCALCLASSPATH//\/usr\/share\/java\/fop-0.17.0.jar:/}

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 $*