You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/10/29 17:33:51 UTC

[jira] Commented: (MRESOURCES-76) FilteringUtils escapeWindowsPath() doesn't work on Windows

    [ http://jira.codehaus.org/browse/MRESOURCES-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=152314#action_152314 ] 

Benjamin Bentmann commented on MRESOURCES-76:
---------------------------------------------

I believe the motivation for this escaping was the use case of filtering properties files, where backslash and colon have special meanings.

> FilteringUtils escapeWindowsPath() doesn't work on Windows
> ----------------------------------------------------------
>
>                 Key: MRESOURCES-76
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-76
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Marvin Froeder
>         Attachments: FilteringUtilsTest.java
>
>
> The method escapeWindowsPath() is replacing  colon by backslash + colon.
> I.e.
> D:\temp
> is escaped as
> D\:\\temp
> But windows doesn't recognize that.  If you try to open D\:\\temp on explorer, will not work.
> Even java.io.File is not able to handle that too.  The attached test proves it.
> I'm not sure why this backslash was add to colon, but commenting line 44 of org.apache.maven.shared.filtering.FilteringUtils make the test work.

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