blob: 4b286ccdd4bd7792b5d95e435faa09a049b0f3ba [file] [log] [blame]
#!/bin/sh
# -----------------------------------------------------------------------------
#
# Script for running the Catalina tool wrapper using the Launcher
#
# -----------------------------------------------------------------------------
# Resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
if [ -r "$PRGDIR"/setenv.sh ]; then
. "$PRGDIR"/setenv.sh
fi
# Execute the Launcher using the "tool-wrapper" target
exec "$JAVA_HOME"/bin/java -classpath "$PRGDIR" LauncherBootstrap -launchfile catalina.xml -verbose tool-wrapper "$@"