Ticket #39793: sbt2.diff
File sbt2.diff, 1010 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 # Ensure enough heap space is created for sbt. These settings are the 21 # default settings from Typesafe's sbt wrapper. 22 if [ -z "$JAVA_OPTS" ]; then 20 # Customisation: this may define a variable SBT_JAVA_OPTS 21 SBTCONF=~/.sbtconfig 22 if [ -f "${SBTCONF}" ]; then 23 . ${SBTCONF} 24 JAVA_OPTS="$SBT_JAVA_OPTS" 25 elif [ -z $"JAVA_OPTS" ]; then 26 # Ensure enough heap space is created for sbt. These settings are the 27 # default settings from Typesafe's sbt wrapper. 23 28 JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8" 24 29 fi 25 30 26 31 # Assume java is already in the shell path. 27 exec java $ JAVA_OPTS-jar "$LAUNCHJAR" "$@"32 exec java ${JAVA_OPTS} -jar "$LAUNCHJAR" "$@"