From ccc3badf8e850615abe7c93c8badb9d5e027c854 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 27 Nov 2026 07:38:26 +0000 Subject: automatic import of tomcat10.1.54 --- tomcat-functions | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tomcat-functions (limited to 'tomcat-functions') diff --git a/tomcat-functions b/tomcat-functions new file mode 100644 index 0000000..1187653 --- /dev/null +++ b/tomcat-functions @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -r /usr/share/java-utils/java-functions ]; then + . /usr/share/java-utils/java-functions +else + echo "Can't read Java functions library, aborting" + exit 1 +fi + +_save_function() { + local ORIG_FUNC=$(declare -f $1) + local NEWNAME_FUNC="$2${ORIG_FUNC#$1}" + eval "$NEWNAME_FUNC" +} + +_save_function run run_java + +run() { + run_java $@ +} + -- cgit v1.2.3