Blame SOURCES/tomcat-functions

e52055
#!/bin/bash
e52055
e52055
if [ -r /usr/share/java-utils/java-functions ]; then
e52055
  . /usr/share/java-utils/java-functions
e52055
else
e52055
  echo "Can't read Java functions library, aborting"
e52055
  exit 1
e52055
fi
e52055
e52055
_save_function() {
e52055
    local ORIG_FUNC=$(declare -f $1)
e52055
    local NEWNAME_FUNC="$2${ORIG_FUNC#$1}"
e52055
    eval "$NEWNAME_FUNC"
e52055
}
e52055
e52055
_save_function run run_java
e52055
e52055
run() {
e52055
   if [ "${USE_JSVC}" = "true" ] ; then
e52055
    echo "JSVC support is not available with this Tomcat package."
e52055
    exit 1
e52055
   else
e52055
	run_java $@
e52055
   fi
e52055
}
e52055