Friday, April 12, 2013

SBT Launcher

Copying the launcher into the bin dir and creating the script

#!/bin/sh
java -Xmx256M -jar `dirname $0`/sbt-launcher.jar "$@"
OR
A better script for the launch
FILENAME=$0if [ -h $FILENAME ]
  then
    FILE_NAME=`readlink $0`
fi
java -Xmx512M -jar `dirname $FILE_NAME`/sbt-launch-0.7.5.jar "$@"
so the sbt file can be placed on any path:
mkdir /opt/sbt
cd /opt/sbt
wget  http://simple-build-tool.googlecode.com/files/sbt-launch-0.7.5.jar

create a file and add the script above

vim sbt

chmod 755 sbt
ln -s /opt/sbt/sbt /usr/bin/sbt
 

No comments:

Post a Comment