diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-11-27 07:38:26 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-11-27 07:38:26 +0000 |
| commit | ccc3badf8e850615abe7c93c8badb9d5e027c854 (patch) | |
| tree | bb465c2ac15156a59563b3c2b6aaf62285698283 /tomcat-functions | |
| parent | b2c2e545b019af5753f7935a994902010c220df3 (diff) | |
automatic import of tomcat10.1.54openeuler24.03_LTS_SP3
Diffstat (limited to 'tomcat-functions')
| -rw-r--r-- | tomcat-functions | 21 |
1 files changed, 21 insertions, 0 deletions
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 $@ +} + |
