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:
Vincent Siveton 2008-01-17 22:55:12 +00:00
parent 724b3db3c4
commit a16c3bf4a8
2 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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.