[
http://jira.codehaus.org/browse/MDEP-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218809#action_218809
]
Sergei Ivanov commented on MDEP-260:
------------------------------------
Damn, even Jira cannot escape strings properly. There was a double backslash in
the second example.
Anyway, the problem is due to regular expression replacement string not being
properly escaped, and backslash has a special meaning there (see javadoc on
java.lang.String#replaceAll() ).
Please consider the attached patch (against 2.1 release) that resolves the
problem.
> <fileSeparator>\</fileSeparator> causes an exception
> ----------------------------------------------------
>
> Key: MDEP-260
> URL: http://jira.codehaus.org/browse/MDEP-260
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Components: build-classpath
> Affects Versions: 2.1
> Reporter: Sergei Ivanov
> Assignee: Brian Fox
> Attachments: file_separator.patch
>
>
> If I specify the following property in the plugin configuration:
> <fileSeparator>\</fileSeparator>
> then the plugin crashes with an exception because a regex parser fails
> internally.
> It appears that the property needs to be escaped like this:
> <fileSeparator>\\</fileSeparator>
> The plugin should take care of escaping the property itself.
--
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