takari / maven-wrapper

The easiest way to integrate Maven into your project!
Apache License 2.0
1.59k stars 234 forks source link

Update mvnw.cmd - missing `usebackq` option in for loop #175

Closed ursaj closed 3 years ago

ursaj commented 3 years ago

This for loop did NOT work correctly on windows workstation without usebackq option:

17:31:59  D:\jenkins\test-project>FOR /F "tokens=1,2 delims==" %A IN ("D:\jenkins\test-project\.mvn\wrapper\maven-wrapper.properties") DO (IF "%A" == "wrapperUrl" SET DOWNLOAD_URL=%B ) 
17:31:59  D:\jenkins\test-project>(IF "D:\jenkins\test-project\.mvn\wrapper\maven-wrapper.properties" == "wrapperUrl" SET DOWNLOAD_URL= ) 
mosabua commented 3 years ago

This project is deprecated as documented in the readme. Please work with the upstream Apache Maven project.