[
http://jira.codehaus.org/browse/MNG-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158783#action_158783
]
Benjamin Bentmann commented on MNG-3930:
----------------------------------------
Extraced from MNG-3662 to separate the CLI issue from the interpolation issue.
Reposting my relevant comment:
The only problem I observed with the ampersand character was in the batch files
launching Maven, more precisely in
{noformat}
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
{noformat}
which causes something like "Jerry is not recognized as an internal or external
command" when executing the {{set}} command for the user name "Tom&Jerry".
As outlined in the [Windows Command Shell
Overview|http://technet2.microsoft.com/windowsserver/en/library/44500063-fdaf-4e4f-8dac-476c497a166f1033.mspx?mfr=true]
and [KB-103368|http://support.microsoft.com/?scid=kb%3Ben-us%3B103368], the
ampersand is a special character that needs escaping, e.g. by surrounding with
quots.
If you encounter other errors besides the one mentioned, please provide a full
debug log of Maven.
> mvn.bat doesn't handle ampersand in Windows user name properly
> --------------------------------------------------------------
>
> Key: MNG-3930
> URL: http://jira.codehaus.org/browse/MNG-3930
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.9
> Environment: Windows Vista Small Business
> Reporter: Benjamin Bentmann
> Fix For: 2.0.11
>
> Attachments: escape-shell-chars.patch
>
>
> Halo!
> Maven don't work when In Windows user has ampersand in the name for example
> username=Tom&Jerry. Windows allows usernames like this, but Maven treat
> ampersand in the name of users main folder as a part of some url (?) or
> something ... and cannot get path properly. Windows do not allow to change
> username with all user's foldernames.
> Artur
--
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