Ticket #39793: sbt2.diff

File sbt2.diff, 1010 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 # 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
     21SBTCONF=~/.sbtconfig
     22if [ -f "${SBTCONF}" ]; then
     23    . ${SBTCONF}
     24    JAVA_OPTS="$SBT_JAVA_OPTS"
     25elif [ -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.
    2328    JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
    2429fi
    2530
    2631# Assume java is already in the shell path.
    27 exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"
     32exec java ${JAVA_OPTS} -jar "$LAUNCHJAR" "$@"