Ticket #39793: sbt.diff
File sbt.diff, 1006 bytes (added by luc-j-bourhis (Luc J. Bourhis), 11 years ago) |
---|
-
sbt
old new 17 17 # Is the location of the SBT launcher JAR file. 18 18 LAUNCHJAR="/opt/local/share/sbt/sbt-launch.jar" 19 19 20 # Customisation: this should define a variable SBT_JAVA_OPTS 21 SBTCONF=~/.sbtconfig 22 if [ -f ${SBTCONF} ]; then 23 . ${SBTCONF} 24 fi 25 20 26 # Ensure enough heap space is created for sbt. These settings are the 21 27 # default settings from Typesafe's sbt wrapper. 22 if [ -z "$ JAVA_OPTS" ]; then23 JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"28 if [ -z "$SBT_JAVA_OPTS" ]; then 29 SBT_JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8" 24 30 fi 25 31 26 32 # Assume java is already in the shell path. 27 exec java $ JAVA_OPTS-jar "$LAUNCHJAR" "$@"33 exec java ${SBT_JAVA_OPTS} -jar "$LAUNCHJAR" "$@"