diff options
Diffstat (limited to 'Library/Formula/sbt.rb')
| -rw-r--r-- | Library/Formula/sbt.rb | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Library/Formula/sbt.rb b/Library/Formula/sbt.rb index be02e9ea2..b441eefdd 100644 --- a/Library/Formula/sbt.rb +++ b/Library/Formula/sbt.rb @@ -7,14 +7,24 @@ class Sbt <Formula md5 '8903fb141037056a497925f3efdb9edf' def install - (bin+'sbt').write <<-EOS -#!/bin/sh -if test -f ~/.sbtconfig; then - . ~/.sbtconfig -fi -exec java -Xmx512M ${SBT_OPTS} -jar #{libexec}/#{JAR} "$@" -EOS + (bin+'sbt').write <<-EOS.undent + #!/bin/sh + if test -f ~/.sbtconfig; then + . ~/.sbtconfig + fi + exec java -Xmx512M ${SBT_OPTS} -jar #{libexec}/#{JAR} "$@" + EOS libexec.install Dir['*'] end + + def caveats + <<-EOS.undent + You can use $SBT_OPTS to pass additional JVM options to SBT. + For convenience, this can specified in `~/.sbtconfig`. + + For example: + SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" + EOS + end end |
