Revision: 108615 https://trac.macports.org/changeset/108615 Author: blair@macports.org Date: 2013-07-27 16:58:40 -0700 (Sat, 27 Jul 2013) Log Message: ----------- sbt: check for ~/.sbtconfig and source it to read JAVA_OPTS; closes #39793. Modified Paths: -------------- trunk/dports/devel/sbt/Portfile trunk/dports/devel/sbt/files/sbt.sh Modified: trunk/dports/devel/sbt/Portfile =================================================================== --- trunk/dports/devel/sbt/Portfile 2013-07-27 23:22:14 UTC (rev 108614) +++ trunk/dports/devel/sbt/Portfile 2013-07-27 23:58:40 UTC (rev 108615) @@ -5,6 +5,7 @@ name sbt version 0.12.3 +revision 1 categories devel java license BSD maintainers blair openmaintainer Modified: trunk/dports/devel/sbt/files/sbt.sh =================================================================== --- trunk/dports/devel/sbt/files/sbt.sh 2013-07-27 23:22:14 UTC (rev 108614) +++ trunk/dports/devel/sbt/files/sbt.sh 2013-07-27 23:58:40 UTC (rev 108615) @@ -17,9 +17,14 @@ # Is the location of the SBT launcher JAR file. LAUNCHJAR="__SBT_LAUNCHER_PATH__" -# Ensure enough heap space is created for sbt. These settings are the -# default settings from Typesafe's sbt wrapper. +# Customization: this may define JAVA_OPTS. +SBTCONF=$HOME/.sbtconfig +if [ -f "$SBTCONF" ]; then + . $SBTCONF +fi if [ -z "$JAVA_OPTS" ]; then + # Ensure enough heap space is created for sbt. These settings are + # the default settings from Typesafe's sbt wrapper. JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8" fi