aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri2010-12-31 13:03:59 +0530
committerAdam Vandenberg2010-12-31 09:05:05 -0800
commit5e51224680e0dd905c479db295c4a879f7d77404 (patch)
tree1e864dc998a5b3f56460a199c928454c8063c170 /Library
parent9fa4c9d606000ca30f82f06e7cf984d61ef7f749 (diff)
downloadhomebrew-5e51224680e0dd905c479db295c4a879f7d77404.tar.bz2
sbt - add caveat about SBT_OPTS
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sbt.rb24
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