A simle shell script so that one can start sbt in debug mode, with the correct parameters for the keys, and with easy to set ssl options
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/rwsbt Fri Oct 21 16:27:37 2011 +0200
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+KS=/Volumes/Dev/Programming/w3.org/hg/read-write-web/keys/KEYSTORE.jks
+while [ $# -gt 0 ]
+do
+ case $1 in
+ -d) PROPS="$PROPS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+ ;;
+ -n) PROPS="$PROPS -Dnetty.ssl.keyStoreType=JKS -Dnetty.ssl.keyStore=$KS -Dnetty.ssl.keyStorePassword=secret"
+ ;;
+ -j) PROPS="$PROPS -Djetty.ssl.keyStoreType=JKS -Djetty.ssl.keyStore=$KS -Djetty.ssl.keyStorePassword=secret"
+ ;;
+ -sslUnsafe) PROPS="$PROPS -Dsun.security.ssl.allowUnsafeRenegotiation=true"
+ ;; # see: http://download.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#workarounds
+ -sslLegacy) PROPS="$PROPS -Dsun.security.ssl.allowLegacyHelloMessages=true"
+ ;;
+ *) echo the arguments to use are -d
+ ;;
+ esac
+ shift 1
+ done
+
+
+export SBT_PROPS=$PROPS
+xsbt