<pre style='margin:0'>
Aaron Madlon-Kay (amake) pushed a commit to branch sbt
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cb26d89c7c488c98eb31ab622db26ebb2bfb8226">https://github.com/macports/macports-ports/commit/cb26d89c7c488c98eb31ab622db26ebb2bfb8226</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit cb26d89c7c488c98eb31ab622db26ebb2bfb8226
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Wed Aug 29 16:41:52 2018 +0900
<span style='display:block; white-space:pre;color:#404040;'> sbt: fix warning when launching with Java 8+
</span>---
devel/sbt/Portfile | 1 +
devel/sbt/files/sbt.sh | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sbt/Portfile b/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba1f0ff..a86e984 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name sbt
version 0.13.17
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel java
license BSD
maintainers {blair @blair} openmaintainer
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sbt/files/sbt.sh b/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;color:#808080;'>index 341f932..23e0b3f 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,9 @@ fi
</span> if [ -z "$JAVA_OPTS" ]; then
# Ensure enough heap space is created for sbt. These settings are
# the default settings from Typesafe's sbt wrapper.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CLASS_METADATA_OPT=$([ "$JAVA_VERSION" \< "1.8" ] && echo "MaxPermSize" || echo "MaxMetaspaceSize")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:$CLASS_METADATA_OPT=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
</span> fi
# Assume java is already in the shell path.
</pre><pre style='margin:0'>
</pre>