This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git

The following commit(s) were added to refs/heads/master by this push:
     new 430fd0c  [MWRAPPER-147] mvnw.cmd fails to launch maven if username 
contains space
430fd0c is described below

commit 430fd0cf64212e175df2a9e48d3ff81532883e44
Author: sebthom <sebt...@users.noreply.github.com>
AuthorDate: Wed Sep 4 23:29:43 2024 +0200

    [MWRAPPER-147] mvnw.cmd fails to launch maven if username contains space
---
 maven-wrapper-distribution/src/resources/only-mvnw.cmd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-wrapper-distribution/src/resources/only-mvnw.cmd 
b/maven-wrapper-distribution/src/resources/only-mvnw.cmd
index 60e1993..4a878f3 100644
--- a/maven-wrapper-distribution/src/resources/only-mvnw.cmd
+++ b/maven-wrapper-distribution/src/resources/only-mvnw.cmd
@@ -40,7 +40,7 @@
 @SET __MVNW_ARG0_NAME__=
 @SET MVNW_USERNAME=
 @SET MVNW_PASSWORD=
-@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
 @echo Cannot start maven from wrapper >&2 && exit /b 1
 @GOTO :EOF
 : end batch / begin powershell #>

Reply via email to