Skip to content

Commit

Permalink
Add 'sbt' script
Browse files Browse the repository at this point in the history
Suggested-by: Aki Saarinen <aki.saarinen@valotrading.com>
Signed-off-by: Jussi Virtanen <jussi.virtanen@valotrading.com>
  • Loading branch information
Jussi Virtanen committed Apr 23, 2012
1 parent 21d5141 commit 695873f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@ target/
/bin
/build
/data
/sbt-launch.jar
/stirling.jar
/stirling.log
/out
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -20,16 +20,16 @@ Hacking

Open a FIX console:

sbt one-jar
./sbt one-jar
java -jar stirling.jar

Run all unit tests:

sbt test
./sbt test

Run the performance test:

sbt make-perftest
./sbt make-perftest
script/perftest


Expand Down
15 changes: 15 additions & 0 deletions sbt
@@ -0,0 +1,15 @@
#!/bin/bash

CURL="curl"

JAVA="java"
JAVA_OPTS="-Xms512M -Xmx2048M -Xss1M -XX:MaxPermSize=512M"

SBT="sbt-launch.jar"
SBT_URL="http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.2/sbt-launch.jar"

if [ ! -e $SBT ]; then
$CURL -O -s $SBT_URL
fi

$JAVA $JAVA_OPTS -jar $SBT "$@"

0 comments on commit 695873f

Please sign in to comment.