summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/data-provider/provider/java.sh
blob: 26d5aea4b5fee1db84856bb5e194cb89edc99208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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