Mercurial > repos > timpalpant > java_genomics_toolkit
diff galaxy-conf/galaxyToolRunner.sh @ 13:eb53be9a09f4 draft
Uploaded
author | timpalpant |
---|---|
date | Sat, 19 May 2012 10:36:45 -0400 |
parents | 4b32ed5d4a1b |
children |
line wrap: on
line diff
--- a/galaxy-conf/galaxyToolRunner.sh Wed Apr 25 16:53:48 2012 -0400 +++ b/galaxy-conf/galaxyToolRunner.sh Sat May 19 10:36:45 2012 -0400 @@ -6,9 +6,12 @@ exit; fi -if [ "$1" = "list" ] -then - find src/edu/unc/genomics/**/*.java -exec basename -s .java {} \; +# Verify that the user has Java 7 installed +# Otherwise there will be an obscure UnsupportedClassVersion error +version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}') +if [[ "$version" < "1.7" ]]; then + echo "Need Java 7 or greater. You have Java $version installed." + exit fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"