summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat/files/tomcatctl
diff options
context:
space:
mode:
Diffstat (limited to 'www/jakarta-tomcat/files/tomcatctl')
-rw-r--r--www/jakarta-tomcat/files/tomcatctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/jakarta-tomcat/files/tomcatctl b/www/jakarta-tomcat/files/tomcatctl
index a28cac7623a2..9992f023380b 100644
--- a/www/jakarta-tomcat/files/tomcatctl
+++ b/www/jakarta-tomcat/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