aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/data-provider/provider/java.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/data-provider/provider/java.sh')
-rwxr-xr-xsdnr/wt/data-provider/provider/java.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/sdnr/wt/data-provider/provider/java.sh b/sdnr/wt/data-provider/provider/java.sh
new file mode 100755
index 000000000..26d5aea4b
--- /dev/null
+++ b/sdnr/wt/data-provider/provider/java.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Java startup helper
+# if JAVA_HOME is specified, use related version
+
+echo "Java run helper"
+
+if [ ! -z "$JAVA_HOME" ] ; then
+ echo "JAVA_HOME=$JAVA_HOME"
+ $JAVA_HOME/bin/java "$@"
+else
+ echo "Java on path"
+ java "$@"
+fi
+