-
-
Save mslinn/2137839 to your computer and use it in GitHub Desktop.
sbt scripts enhanced for Sublime-text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export JAVA_OPTS="$JAVA_OPTS -Dsbt.log.noformat=true" | |
"$(dirname $0)/sbt" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@set JAVA_OPTS=%JAVA_OPTS% -Dsbt.log.noformat=true | |
sbt %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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