tie the script in bin to the sbt that comes by default with the project. Should the sbt in the project be placed in bin/ ? bblfish
authorHenry Story <henry.story@bblfish.net>
Thu, 17 Nov 2011 02:05:35 +0100
branchbblfish
changeset 120 ccac2e292fef
parent 111 5497f1957ad0
child 121 38d13793dfae
child 122 83097ca48f9f
tie the script in bin to the sbt that comes by default with the project. Should the sbt in the project be placed in bin/ ?
bin/rwsbt.sh
sbt
--- a/bin/rwsbt.sh	Sat Nov 12 08:27:27 2011 -0500
+++ b/bin/rwsbt.sh	Thu Nov 17 02:05:35 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 02:05:35 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" "$@"