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 2010/01/31 01:30:55 UTC
[jira] Closed: (MNG-4464) Improve handling of relative paths with
backslashes
[ http://jira.codehaus.org/browse/MNG-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4464.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-alpha-7
Assignee: Benjamin Bentmann
Revised separator handling in [r904931|http://svn.apache.org/viewvc?view=revision&revision=904931].
I opted to accept both forward and backslash as file separators. For one, this matches Ant's behavior. And for second because issueing a warning from all relevant code spots isn't feasible.
> Improve handling of relative paths with backslashes
> ---------------------------------------------------
>
> Key: MNG-4464
> URL: http://jira.codehaus.org/browse/MNG-4464
> Project: Maven 2 & 3
> Issue Type: Improvement
> Components: POM
> Affects Versions: 2.2.1, 3.0-alpha-4
> Environment: Unix, Mac
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Priority: Minor
> Fix For: 3.0-alpha-7
>
>
> Consider this snippet:
> {code:xml}
> <parent>
> <relativePath>..\pom.xml</relativePath>
> </parent>
> {code}
> Note in particular the backslash used in the path. While this path will be properly resolved on a Windows box, it will fail to resolve the local parent on a Unix/Mac box (as the backslash is not a separator but escape character here). This applies to other paths in the POM as well.
> For platform-independent behavior, we should either encourage the user to use forward slashes (by means of validation warnings/errors) or have Maven convert the paths internally.
--
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