Skip to content

Instantly share code, notes, and snippets.

@mslinn
Created March 20, 2012 16:21
Show Gist options
  • Save mslinn/2137839 to your computer and use it in GitHub Desktop.
Save mslinn/2137839 to your computer and use it in GitHub Desktop.
sbt scripts enhanced for Sublime-text 2
#!/bin/bash
# JAVA_HOME must be on the path
JAVA_OPTS="-Xss2m -Xmx512M -XX:MaxPermSize=128m -XX:+CMSClassUnloadingEnabled"
if [ $OSTYPE == cygwin ]; then
export CYGWIN="tty ntsec"
JAVA_OPTS="$JAVA_OPTS -Djline.terminal=jline.UnixTerminal"
fi
java $JAVA_OPTS -jar 'e:/storage/programming/scala/sbt-launch.jar' "$@"
#!/bin/bash
export JAVA_OPTS="$JAVA_OPTS -Dsbt.log.noformat=true"
"$(dirname $0)/sbt" "$@"
@set JAVA_OPTS=%JAVA_OPTS% -Dsbt.log.noformat=true
sbt %*
@rem set SCRIPT_DIR=%~dp0
@set SCRIPT_DIR=D:/storage/programming/scala
@java %JAVA_OPTS% -Xmx512M -jar "%SCRIPT_DIR%/sbt-launch.jar" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment