summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat3/files/tomcatctl
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-02-25 08:02:51 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-02-25 08:02:51 +0000
commit81068d260f2fbaf4c752647503cfe13ac4291b14 (patch)
tree81e50ff7567256683b6531dcab581c0ca23fa196 /www/jakarta-tomcat3/files/tomcatctl
parentThe value for ONLY_FOR_ARCHS (i386) was quoted, but that results in an error. (diff)
Now sets the CLASSPATH *after* JAVA_HOME is determined.
Reported by: Clive Lin <clive@tongi.org>
Notes
Notes: svn path=/head/; revision=55219
Diffstat (limited to 'www/jakarta-tomcat3/files/tomcatctl')
-rw-r--r--www/jakarta-tomcat3/files/tomcatctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/jakarta-tomcat3/files/tomcatctl b/www/jakarta-tomcat3/files/tomcatctl
index a28cac7623a2..9992f023380b 100644
--- a/www/jakarta-tomcat3/files/tomcatctl
+++ b/www/jakarta-tomcat3/files/tomcatctl
@@ -16,15 +16,15 @@ for i in ${APP_HOME}/lib/* ; do
CLASSPATH=$i
fi
done
-if [ -f ${JAVA_HOME}/lib/tools.jar ] ; then
- CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
-fi
# Check if the JAVA_HOME directory is defined, otherwise set it to the
# fallback default
if [ "${JAVA_HOME}a" = "a" ]; then
JAVA_HOME=%%JAVA_HOME%%
fi
+if [ -f ${JAVA_HOME}/lib/tools.jar ] ; then
+ CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
+fi
JAVA_CMD=${JAVA_HOME}/bin/java