comparison galaxy-conf/galaxyToolRunner.sh @ 25:b43c420a6135 draft default tip

Incorporate fix: https://github.com/timpalpant/java-genomics-toolkit/commit/9a6c61b7c6b8d85a1cd3f595eed657a537b85dc9
author timpalpant
date Sat, 09 Feb 2019 14:02:24 -0500
parents 9d56b5b85740
children
comparison
equal deleted inserted replaced
24:a77e126ae856 25:b43c420a6135
4 then 4 then
5 echo "USAGE: galaxyToolRunner.sh APPNAME [ARGS]"; 5 echo "USAGE: galaxyToolRunner.sh APPNAME [ARGS]";
6 exit; 6 exit;
7 fi 7 fi
8 8
9 # Verify that the user has Java 7 installed
10 # Otherwise there will be an obscure UnsupportedClassVersion error
11 version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
12 if [[ "$version" < "1.7" ]]; then
13 echo "Need Java 7 or greater. You have Java $version installed."
14 exit
15 fi
16
17 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 9 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
18 java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@" 10 java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@"