[ 
http://jira.codehaus.org/browse/MASSEMBLY-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Casey closed MASSEMBLY-417.
--------------------------------

    Resolution: Fixed

code in SelectorUtils, which supports DirectoryScanner, was doing two 
substitutions that injected a character class where regex patterns were 
concerned. The first one replaced a simple '/' with a character class 
containing both possible file separator characters, and the second attempted to 
do the same for '\'. The problem was that the second substitution operated on 
the result of the first, which meant that the code injected a character class 
within a pre-existing character class. I've eliminated the second substitution, 
particularly since the '\' character can mean so many things in regex.

Note that using '/' in a character class will still result in some weirdness 
because of the need to represent both types of file separators in the pattern. 
We may need to get smarter about this eventually.

> regex in/exclusion patterns can fail on Windows due to file-separator 
> replacement.
> ----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-417
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-417
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-4
>            Reporter: John Casey
>            Assignee: John Casey
>             Fix For: 2.2-beta-4
>
>
> http://grid.sonatype.org/ci/job/maven-assembly-plugin-2.2-beta-4-ITs/jdk=1.5,label=windows/18/console

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

        

Reply via email to