mirror of https://github.com/apache/maven.git
o merged from r613001 (MNG-3365: Remove trailing-backslashes from M2_HOME in mvn.bat)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@613002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
724b3db3c4
commit
a16c3bf4a8
|
@ -80,6 +80,13 @@ echo.
|
|||
goto error
|
||||
|
||||
:valMHome
|
||||
|
||||
:stripMHome
|
||||
if not _%M2_HOME:~-1%==_\ goto checkMBat
|
||||
set M2_HOME=%M2_HOME:~0,-1%
|
||||
goto stripMHome
|
||||
|
||||
:checkMBat
|
||||
if exist "%M2_HOME%\bin\mvn.bat" goto init
|
||||
|
||||
echo.
|
||||
|
|
|
@ -83,6 +83,13 @@ echo.
|
|||
goto error
|
||||
|
||||
:valMHome
|
||||
|
||||
:stripMHome
|
||||
if not _%M2_HOME:~-1%==_\ goto checkMBat
|
||||
set M2_HOME=%M2_HOME:~0,-1%
|
||||
goto stripMHome
|
||||
|
||||
:checkMBat
|
||||
if exist "%M2_HOME%\bin\mvn.bat" goto init
|
||||
|
||||
echo.
|
||||
|
|
Loading…
Reference in New Issue