Quote $jarfile when creating arguments in launch script

Previously, if the pathname of fully executable contained any space
characters, the launch script would fail to locate the jar file

This commit fixes this issue by quoting the jarfile.

Closes gh-7535
This commit is contained in:
Pei-Tang Huang
2016-11-30 19:36:53 +08:00
committed by Andy Wilkinson
parent d9bd211062
commit 5a5e2db134

View File

@@ -133,7 +133,7 @@ else
exit 1
fi
arguments=(-Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar $jarfile $RUN_ARGS "$@")
arguments=(-Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar "$jarfile" $RUN_ARGS "$@")
# Action functions
start() {