[ http://jira.codehaus.org/browse/MNG-1273?page=comments#action_53938 ] 

Brent Worden commented on MNG-1273:
-----------------------------------

I believe this is a bug in Win2K.  I installed m2 to c:\apps\maven-2.0.1 on a 
Win2K machine.  Tinkering with the batch file, I found %~dps0 doesn't expand 
very nicely.  Here is a comparison between %~dp0 and %~dps0:

{noformat}
using %~dp0:  C:\apps\maven-2.0.1\bin\
using %~dps0: C:\apps\MAVEN-~1.1\bin\m
{noformat}

Notice the short name expansion doesn't make an attempt to demarcate the 
directory correctly.  It appears to just preserve the string length.

Unless someone can come up with some batch file magic to massage the short name 
expansion, I, for one, would not attempt to fix this problem and simply 
document it as a deficiency in Win2K and that M2_HOME should be explicitly 
defined as an environment variable.


> Current  installation instructions for Windows do not mention M2_HOME. It is 
> required and cannot have spaces.
> -------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-1273
>          URL: http://jira.codehaus.org/browse/MNG-1273
>      Project: Maven 2
>         Type: Bug

>   Components: documentation - general
>     Versions: 2.0
>  Environment: Windows
>     Reporter: Richard Bondi
>     Priority: Minor
>      Fix For: 2.0.3

>
>
> Two issues:
> 1. The installation instructions for Windows make no mention of the need to 
> set M2_HOME. But if you try to run "mvn --version" after following the 
> instructions, you are prompted to set this environment variable.
> 2. At least on Windows 2K, M2_HOME will not work if it contains spaces. One 
> workaround is to use the "short" 8.3 version of all directory names. (To see 
> the short version of directory names, do "dir /A:D /X" in a DOS window.)

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

Reply via email to