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

sjaranowski pushed a commit to branch mvnd-1.x
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git


The following commit(s) were added to refs/heads/mvnd-1.x by this push:
     new 50b47d03 [MNG-8315] Fix MAVEN_PROJECTBASEDIR in mvn.cmd when .mvn is 
at drive root
50b47d03 is described below

commit 50b47d0394556cff59817f1885e6bb0d98d57410
Author: Slawomir Jaranowski <s.jaranow...@gmail.com>
AuthorDate: Tue Jun 10 23:39:36 2025 +0200

    [MNG-8315] Fix MAVEN_PROJECTBASEDIR in mvn.cmd when .mvn is at drive root
---
 dist/src/main/distro/bin/mvnd.cmd | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dist/src/main/distro/bin/mvnd.cmd 
b/dist/src/main/distro/bin/mvnd.cmd
index b4075b50..5e2df6ab 100644
--- a/dist/src/main/distro/bin/mvnd.cmd
+++ b/dist/src/main/distro/bin/mvnd.cmd
@@ -189,6 +189,9 @@ for /F "usebackq delims=" %%a in 
("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do s
 
 :endReadAdditionalConfig
 
+@REM do not let MAVEN_PROJECTBASEDIR end with a single backslash which would 
escape the double quote. This happens when .mvn at drive root.
+if "_%MAVEN_PROJECTBASEDIR:~-1%"=="_\" set 
"MAVEN_PROJECTBASEDIR=%MAVEN_PROJECTBASEDIR%\"
+
 for %%i in ("%MVND_HOME%"\mvn\boot\plexus-classworlds-*) do set 
CLASSWORLDS_JAR="%%i"
 set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
 

Reply via email to