From 5a5e2db1340e2d2687cdf79582122b0e31545ba6 Mon Sep 17 00:00:00 2001 From: Pei-Tang Huang Date: Wed, 30 Nov 2016 19:36:53 +0800 Subject: [PATCH] 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 --- .../org/springframework/boot/loader/tools/launch.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script index f2fca2c793d..3a78d21ceae 100755 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script @@ -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() {