From 94a737638eb6ac0412da922e0807d96b9ef25fff Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 21 Sep 2015 14:51:03 +0100 Subject: [PATCH] Update launch script to specify -jar as last option The recommended usage for the java executable is: java [-options] -jar jarfile [args...] This commit updates the default launch script to match this recommended usage by moving -jar to be the last option, after both the disableJarChecking system property and any JAVA_OPTS. Closes gh-3930 --- .../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 3fbea751d5c..d201c38c183 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 @@ -109,7 +109,7 @@ else fi # Build actual command to execute -command="$javaexe -jar -Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS $jarfile $RUN_ARGS $@" +command="$javaexe -Dsun.misc.URLClassPath.disableJarChecking=true $JAVA_OPTS -jar $jarfile $RUN_ARGS $@" # Action functions start() {