Ticket #39793: sbt.diff

File sbt.diff, 1006 bytes (added by luc-j-bourhis (Luc J. Bourhis), 11 years ago)
  • sbt

    old new  
    1717# Is the location of the SBT launcher JAR file.
    1818LAUNCHJAR="/opt/local/share/sbt/sbt-launch.jar"
    1919
     20# Customisation: this should define a variable SBT_JAVA_OPTS
     21SBTCONF=~/.sbtconfig
     22if [ -f ${SBTCONF} ]; then
     23    . ${SBTCONF}
     24fi
     25
    2026# Ensure enough heap space is created for sbt.  These settings are the
    2127# default settings from Typesafe's sbt wrapper.
    22 if [ -z "$JAVA_OPTS" ]; then
    23     JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
     28if [ -z "$SBT_JAVA_OPTS" ]; then
     29    SBT_JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
    2430fi
    2531
    2632# Assume java is already in the shell path.
    27 exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"
     33exec java ${SBT_JAVA_OPTS} -jar "$LAUNCHJAR" "$@"