From db092f1a47e0e0c052214acd8546af79f1daabd5 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Tue, 16 Mar 2010 23:24:21 +0100 Subject: [PATCH] Added the run_akka.sh script --- scripts/run_akka.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/run_akka.sh diff --git a/scripts/run_akka.sh b/scripts/run_akka.sh new file mode 100755 index 0000000000..c07397adeb --- /dev/null +++ b/scripts/run_akka.sh @@ -0,0 +1,16 @@ +#!/bin/bash +cd $AKKA_HOME +VERSION=akka_2.7.7-0.7-SNAPSHOT +TARGET_DIR=dist/$1 +shift 1 +VMARGS=$@ + +if [ -d $TARGET_DIR ]; then + cd $TARGET_DIR +else + unzip dist/${VERSION}.zip -d $TARGET_DIR + cd $TARGET_DIR +fi + +export AKKA_HOME=`pwd` +java -jar ${VMARGS} ${VERSION}.jar \ No newline at end of file