Blame SOURCES/tomcat-functions

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