summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/data-provider/provider/java.sh
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-01-29 12:05:05 +0000
committerGerrit Code Review <gerrit@onap.org>2021-01-29 12:05:05 +0000
commit123b423cddbe01bdaba0bea50d986ff1b18a25bc (patch)
tree8495f849914eecc639e50ff7a2cd5dbd44da78bc /sdnr/wt/data-provider/provider/java.sh
parent6e45a54cf77e2473cc441ba587483eedff838dd8 (diff)
parenta3e70a1a48d13193d9f28a2d91089d5b253d3e91 (diff)
Merge "update common and data-provider"
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
+