Skip to content

Commit 5a5e2db

Browse files
tan9wilkinsona
authored andcommitted
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
1 parent d9bd211 commit 5a5e2db

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools

1 file changed

+1
-1
lines changed

spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ else
133133
exit 1
134134
fi
135135

136-
arguments=(-Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar $jarfile $RUN_ARGS "$@")
136+
arguments=(-Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar "$jarfile" $RUN_ARGS "$@")
137137

138138
# Action functions
139139
start() {

0 commit comments

Comments
 (0)