[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Brett Porter updated MNG-1317: ------------------------------ Description: 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. was: 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. Fix Version: 2.0.1 > 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: maven-core > Versions: 2.0 > Environment: Windows 2000/SP4 Maven 2.0 > Reporter: ajbanck > Fix For: 2.0.1 > > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]