diff galaxy-conf/galaxyToolRunner.sh @ 20:9d56b5b85740 draft

Reuploaded to see if tools get loaded correctly this time.
author timpalpant
date Fri, 15 Jun 2012 15:10:26 -0400
parents
children b43c420a6135
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/galaxy-conf/galaxyToolRunner.sh	Fri Jun 15 15:10:26 2012 -0400
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+if [ $# -eq 0 ]
+then
+  echo "USAGE: galaxyToolRunner.sh APPNAME [ARGS]";
+  exit;
+fi
+
+# 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 )"
+java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@"
\ No newline at end of file