Skip to content

Commit a3b6f1f

Browse files
committed
Implement missing add_residual function
1 parent 302f07a commit 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

src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/ash-template

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ addJava () {
3232
java_opts="$java_opts $1"
3333
}
3434

35+
addResidual () {
36+
residual_args="$residual_args $1"
37+
}
38+
3539
# Allow user to specify java options. These get listed first per bash-template.
3640
if [ -n "$JAVA_OPTS" ]
3741
then
@@ -87,6 +91,7 @@ process_args () {
8791
fi
8892
}
8993

94+
residual_args=""
9095
real_script_path="$(realpath "$0")"
9196
app_home="$(realpath "$(dirname "$real_script_path")")"
9297
lib_dir="$(realpath "${app_home}/../lib")"
@@ -102,4 +107,4 @@ java_cmd="$(get_java_cmd)"
102107
# If a configuration file exist, read the contents to $opts
103108
[ -f "$script_conf_file" ] && opts=$(loadConfigFile "$script_conf_file")
104109

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"

0 commit comments

Comments
 (0)