incorrect M2_HOME guess in mvn.bat
----------------------------------

         Key: MNG-2178
         URL: http://jira.codehaus.org/browse/MNG-2178
     Project: Maven 2
        Type: Bug

  Components: Bootstrap & Build  
    Versions: 2.0.2    
 Environment: WXP
    Reporter: Jörg Henne


mvn.bat contains the following lines:

:chkMHome
if not "%M2_HOME%"=="" goto valMHome

if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
if not "%M2_HOME%"=="" goto valMHome

Guessing M2_HOME=%~dps0\.. leads to complaints later on, since the script 
expects m2.bat in bin/...:

if exist "%M2_HOME%\bin\m2.bat" goto init

Hence, the line should read:

if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..\..

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to