From d3b347338a8fdbf9d039eeb75ae83ae11795ddc3 Mon Sep 17 00:00:00 2001 From: Andreas Ahlenstorf Date: Wed, 27 Apr 2016 10:27:05 +0200 Subject: [PATCH] Fix path escaping If `%MAVEN_PROJECTBASEDIR%` contained whitespaces, Windows couldn't find the maven-wrapper.jar because the whitespaces were considered as argument separators. --- maven-wrapper/mvnw.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-wrapper/mvnw.cmd b/maven-wrapper/mvnw.cmd index 734091d5e0..0e1b9d45b5 100644 --- a/maven-wrapper/mvnw.cmd +++ b/maven-wrapper/mvnw.cmd @@ -117,8 +117,8 @@ for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do s :endReadAdditionalConfig SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" - -set WRAPPER_JAR=""%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"" + +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain @REM avoid using MAVEN_CMD_LINE_ARGS below since that would loose parameter escaping in %*