Commit a3b6f1f 1 parent 302f07a commit a3b6f1f Copy full SHA for a3b6f1f
File tree 1 file changed +6
-1
lines changed
src/main/resources/com/typesafe/sbt/packager/archetypes/scripts
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ addJava () {
32
32
java_opts=" $java_opts $1 "
33
33
}
34
34
35
+ addResidual () {
36
+ residual_args=" $residual_args $1 "
37
+ }
38
+
35
39
# Allow user to specify java options. These get listed first per bash-template.
36
40
if [ -n " $JAVA_OPTS " ]
37
41
then
@@ -87,6 +91,7 @@ process_args () {
87
91
fi
88
92
}
89
93
94
+ residual_args=" "
90
95
real_script_path=" $( realpath " $0 " ) "
91
96
app_home=" $( realpath " $( dirname " $real_script_path " ) " ) "
92
97
lib_dir=" $( realpath " ${app_home} /../lib" ) "
@@ -102,4 +107,4 @@ java_cmd="$(get_java_cmd)"
102
107
# If a configuration file exist, read the contents to $opts
103
108
[ -f " $script_conf_file " ] && opts=$( loadConfigFile " $script_conf_file " )
104
109
105
- exec " $java_cmd " $java_opts -classpath $app_classpath $opts $app_mainclass " $@ "
110
+ exec " $java_cmd " $java_opts -classpath $app_classpath $opts $app_mainclass " $residual_args "
You can’t perform that action at this time.
0 commit comments