summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/data-provider/provider/java.sh
diff options
context:
space:
mode:
authorRavi Pendurty <ravi.pendurty@highstreet-technologies.com>2021-02-03 13:56:31 +0100
committerDan Timoney <dtimoney@att.com>2021-02-05 16:52:27 -0500
commit80ebbf5b525b1a251f8e0eebd4a841d85716cf65 (patch)
treed68f747f92dc0c5e6a938474e252e26db63138e7 /sdnr/wt/data-provider/provider/java.sh
parent4e69f3358d31173a222b275e2a82da692846aa1a (diff)
Update common and data-provider
common and data-provider migrated to Aluminium Issue-ID: CCSDK-3111 Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> Change-Id: Ifb4ddb60f84ca7585137e04bc94d44885fe1f5f4 Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
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
+