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/ ?
--- 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" "$@"