comparison galaxy-conf/galaxyToolRunner.sh @ 13:eb53be9a09f4 draft

Uploaded
author timpalpant
date Sat, 19 May 2012 10:36:45 -0400
parents 4b32ed5d4a1b
children
comparison
equal deleted inserted replaced
12:81d5b81fb3c2 13:eb53be9a09f4
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 if [ "$1" = "list" ] 9 # Verify that the user has Java 7 installed
10 then 10 # Otherwise there will be an obscure UnsupportedClassVersion error
11 find src/edu/unc/genomics/**/*.java -exec basename -s .java {} \; 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
12 fi 15 fi
13 16
14 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 17 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15 java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@" 18 java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@"