From df9b1cb1014a0035d2bfb4f61a3f7eb9dc9763d2 Mon Sep 17 00:00:00 2001 From: shim_ Date: Tue, 14 Jun 2016 12:04:44 +0200 Subject: [PATCH] allow for custom SBT_OPTS --- sbt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbt.sh b/sbt.sh index acdcf92..0382ba9 100755 --- a/sbt.sh +++ b/sbt.sh @@ -5,5 +5,8 @@ # @see http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html # -SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" +if [ -z "$SBT_OPTS" ]; then + SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" +fi + exec java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"