diff options
| author | David M. Lee | 2010-12-28 15:31:51 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2010-12-28 15:55:39 -0800 |
| commit | ca753a344d8fb9b508f1db969b988873d5567e78 (patch) | |
| tree | fa236877aa2226bdf79c51f51282a45d3efcd917 /Library/Formula | |
| parent | 530d4022fb5749682aee248b86962ccb747900e1 (diff) | |
| download | homebrew-ca753a344d8fb9b508f1db969b988873d5567e78.tar.bz2 | |
Two enhancements to the sbt launch script.
1. Source a ~/.sbtconfig file, where the user can specify their own
options for invoking sbt (such as
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m")
2. Use exec to launch Java, just to get rid of the extra shell process.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sbt.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/sbt.rb b/Library/Formula/sbt.rb index 35c74de2d..be02e9ea2 100644 --- a/Library/Formula/sbt.rb +++ b/Library/Formula/sbt.rb @@ -9,7 +9,10 @@ class Sbt <Formula def install (bin+'sbt').write <<-EOS #!/bin/sh -java -Xmx512M -jar #{libexec}/#{JAR} "$@" +if test -f ~/.sbtconfig; then + . ~/.sbtconfig +fi +exec java -Xmx512M ${SBT_OPTS} -jar #{libexec}/#{JAR} "$@" EOS libexec.install Dir['*'] |
