Shell script now uses sbt shipeed in repository webid
authorHenry Story <henry.story@bblfish.net>
Thu, 17 Nov 2011 14:28:54 +0100
branchwebid
changeset 122 83097ca48f9f
parent 111 5497f1957ad0 (current diff)
parent 120 ccac2e292fef (diff)
child 123 867d0eb56c5c
Shell script now uses sbt shipeed in repository
--- a/bin/rwsbt.sh	Sat Nov 12 08:27:27 2011 -0500
+++ b/bin/rwsbt.sh	Thu Nov 17 14:28:54 2011 +0100
@@ -1,6 +1,7 @@
 #!/bin/bash 
 
-KS=src/test/resources/KEYSTORE.jks
+export BASE=`dirname $0`/..
+KS=$BASE/src/test/resources/KEYSTORE.jks
 while [ $# -gt 0 ] 
 do 
  case $1 in 
@@ -22,6 +23,5 @@
   shift 1
  done
 
-
 export SBT_PROPS=$PROPS
-xsbt 
+$BASE/sbt 
--- a/sbt	Sat Nov 12 08:27:27 2011 -0500
+++ b/sbt	Thu Nov 17 14:28:54 2011 +0100
@@ -38,5 +38,5 @@
 fi
 
 # tweak this line according to your needs
-java -Xmx512M -jar -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m "$dir/$sbt" "$@"
+java $SBT_PROPS -Xmx512M -jar -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m "$dir/$sbt" "$@"