Skip to content

[MSHARED-995] Documents of patterns used for filtering #254

@jira-importer

Description

@jira-importer

Delany opened MSHARED-995 and commented

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.

 

<include>?????.changelog</include>

There's no support for something like

 

<include>?{1,5}.changelog</include>

 

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.


Issue Links:

  • MSHARED-1022 Documents of patterns used for filtering
    ("is duplicated by")
  • MNG-7495 Support wildcard in maven-filtering filter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions