Blame SOURCES/tomcat-9.0-tool-wrapper.script

ab2b12
#!/bin/sh
ab2b12
#
ab2b12
# tomcat-digest script
ab2b12
# JPackage Project <http://www.jpackage.org/>
ab2b12
ab2b12
# Source functions library
ab2b12
if [ -f /usr/share/java-utils/java-functions ] ; then
ab2b12
  . /usr/share/java-utils/java-functions
ab2b12
else
ab2b12
  echo "Can't find functions library, aborting"
ab2b12
  exit 1
ab2b12
fi
ab2b12
ab2b12
# Get the tomcat config (use this for environment specific settings)
ab2b12
if [ -z "${TOMCAT_CFG}" ]; then
ab2b12
    TOMCAT_CFG="/etc/tomcat/tomcat.conf"
ab2b12
fi
ab2b12
ab2b12
if [ -r "$TOMCAT_CFG" ]; then
ab2b12
    . $TOMCAT_CFG
ab2b12
fi
ab2b12
ab2b12
set_javacmd
ab2b12
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-api.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-util.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-util-scan.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-coyote.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/catalina.jar"
ab2b12
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/servlet-api.jar"
ab2b12
export CLASSPATH
ab2b12
ab2b12
# Configuration
ab2b12
MAIN_CLASS="org.apache.catalina.startup.Tool"
ab2b12
BASE_OPTIONS=""
ab2b12
BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\""
ab2b12
#BASE_JARS="tomcat/tomcat-util tomcat/tomcat-util-scan"
ab2b12
#BASE_JARS="${BASE_JARS} tomcat/tomcat-coyote tomcat/catalina"
ab2b12
#BASE_JARS="${BASE_JARS} tomcat/servlet-api"
ab2b12
ab2b12
# Set parameters
ab2b12
#set_classpath $BASE_JARS
ab2b12
set_flags $BASE_FLAGS
ab2b12
set_options $BASE_OPTIONS
ab2b12
ab2b12
# Let's start
ab2b12
run "$@"