[ https://issues.apache.org/jira/browse/MSHARED-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold updated MSHARED-995: ------------------------------------------ Summary: Documents of patterns used for filtering (was: documentation) > Documents of patterns used for filtering > ---------------------------------------- > > Key: MSHARED-995 > URL: https://issues.apache.org/jira/browse/MSHARED-995 > Project: Maven Shared Components > Issue Type: Improvement > Components: maven-filtering > Reporter: Delany > Priority: Major > > There's basically no documentation on the pattern matching used to filter > resources. The filter component documentation reads like dev documentation, > and I'm left to trail-and-error to figure it out. Adding to the confusion is > that Maven plugins can implement their own pattern matching/strain of regex. > I think the assembly plugin does its own thing. Its frustrating enough when > regex doesn't match so can I at least be clear on the algorithm. > For example, I want to set a more specific filter to copy resources. The > filename may have anywhere between 1 and 5 characters followed by an > extension. > I tried five question marks, but that only matches 5 characters not 4. > > {code:java} > <include>?????.changelog</include> > {code} > There's no support for something like > > {code:java} > <include>?{1,5}.changelog</include> > {code} > > I see double asterisk in some patterns, suggesting globbing. Can this be > stated? Perhaps at one point it was obvious - it may seem too simple to > bother with. But the Internet is full of alternatives today and a simple > write-up will save a lot of guess-work for newbies and those of us with bad > memory. -- This message was sent by Atlassian Jira (v8.20.10#820010)