From 0abeec2668c0bcb4b877a79cc0ef007bb79771cd Mon Sep 17 00:00:00 2001 From: Jason Longshore Date: Fri, 23 Mar 2018 13:55:48 -0500 Subject: [PATCH] Process -XX arguments as JVM args --- .../typesafe/sbt/packager/archetypes/scripts/bash-template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bash-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bash-template index 72fe27b24..b77a536aa 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bash-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bash-template @@ -194,9 +194,9 @@ process_args () { -java-home) require_arg path "$1" "$2" && jre=`eval echo $2` && java_cmd="$jre/bin/java" && shift 2 ;; - -D*|-agentlib*) addJava "$1" && shift ;; - -J*) addJava "${1:2}" && shift ;; - *) addResidual "$1" && shift ;; + -D*|-agentlib*|-XX*) addJava "$1" && shift ;; + -J*) addJava "${1:2}" && shift ;; + *) addResidual "$1" && shift ;; esac done