# Identify the custom class path components we need
JAVA_HOME=/usr/lib/j2sdk1.3
-# Add all JAR files in /usr/share/ant/lib/ to CLASSPATH
+# Add all JAR files to CLASSPATH
LOCALCLASSPATH=`echo /usr/share/java/*.jar | tr ' ' ':'`
LIB_HOME=lib
TOMCAT_HOME=/usr/share/tomcat
-ANT_HOME=/usr/share/ant
-
CP=$LIB_HOME/servlet.jar
+CP=$LIB_HOME/ant.jar:$LIB_HOME/xerces.jar
CP=$CP:$LOCALCLASSPATH
-CP=$CP:$LIB_HOME/xerxes.jar:$TOMCAT_HOME/lib/tomcat.jar
+CP=$CP:$TOMCAT_HOME/lib/tomcat.jar
CP=$CP:$LIB_HOME/gnu-regexp-1.0.8.jar
CP=$CP:$LIB_HOME/freemarker.jar:$LIB_HOME/freemarker-utility.jar
CP=$CP:$LIB_HOME/mm.mysql
CP=$CP:$JAVA_HOME/lib/rt.jar
# Execute ANT to perform the requested build target
-/usr/lib/j2sdk1.3/bin/java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \
+$JAVA_HOME/bin/java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \
-Dtomcat.home=$TOMCAT_HOME "$@"