From 4588db6dd99325b41ff877403042bf745072bd32 Mon Sep 17 00:00:00 2001 From: James Roper Date: Mon, 19 May 2014 09:57:58 +1000 Subject: [PATCH] Fix non Java 8 MaxPermSize configuration The check for Java 8 was always evaluating to true, so MaxPermSize was never being set on Java 6/7 VMs. --- .../com/typesafe/sbt/packager/archetypes/bash-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template index e69ea7bda..8f8048085 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template @@ -167,7 +167,7 @@ get_mem_opts () { [[ "${java_args[@]}" == *-XX:ReservedCodeCacheSize* ]]; then echo "" - elif [[ !$no_java_version_check ]] && [[ java_version > "1.8" ]]; then + elif [[ !$no_java_version_check ]] && [[ "$java_version" > "1.8" ]]; then echo "-Xms${mem}m -Xmx${mem}m -XX:ReservedCodeCacheSize=${codecache}m" else echo "-Xms${mem}m -Xmx${mem}m -XX:MaxPermSize=${perm}m -XX:ReservedCodeCacheSize=${codecache}m"