You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/06/26 20:37:13 UTC
[maven] branch maven-3.8.x updated: [MNG-6850] Prevent printing the
EXEC_DIR when it's just a disk letter
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch maven-3.8.x
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-3.8.x by this push:
new 42c99b4 [MNG-6850] Prevent printing the EXEC_DIR when it's just a disk letter
42c99b4 is described below
commit 42c99b45e45224810ee2f914b238123cbf599a96
Author: Rostislav Krasny <45...@users.noreply.github.com>
AuthorDate: Wed Jan 1 01:07:26 2020 +0200
[MNG-6850] Prevent printing the EXEC_DIR when it's just a disk letter
This fixes following bug and also consistent with another 'cd /d "%EXEC_DIR%"' a few lines above.
When you're on the root of some disk running mvn.cmd prints an extra line with current dir before the correct output
Closes #304
---
apache-maven/src/bin/mvn.cmd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apache-maven/src/bin/mvn.cmd b/apache-maven/src/bin/mvn.cmd
index fd1b21e..0b38157 100644
--- a/apache-maven/src/bin/mvn.cmd
+++ b/apache-maven/src/bin/mvn.cmd
@@ -156,7 +156,7 @@ goto endDetectBaseDir
:baseDirNotFound
if "_%EXEC_DIR:~-1%"=="_\" set "EXEC_DIR=%EXEC_DIR:~0,-1%"
set "MAVEN_PROJECTBASEDIR=%EXEC_DIR%"
-cd "%EXEC_DIR%"
+cd /d "%EXEC_DIR%"
:endDetectBaseDir