You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2006/03/03 14:30:13 UTC

[jira] Closed: (MNG-1317) m2.bat doesn't work on Windows 2000

     [ http://jira.codehaus.org/browse/MNG-1317?page=all ]
     
Kenney Westerhof closed MNG-1317:
---------------------------------

      Assign To: Kenney Westerhof
     Resolution: Fixed
    Fix Version:     (was: 2.0.4)
                 2.0.3

Fixed in revision 382797.

Use ~dp0 instead of ~dps0 (which works correctly,
but produces long filenames), and add double quotes
so the long filenames work.

> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
>          Key: MNG-1317
>          URL: http://jira.codehaus.org/browse/MNG-1317
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000/SP4 Maven 2.0
>     Reporter: ajbanck
>     Assignee: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file.  %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD 
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org