You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2011/06/22 12:12:49 UTC

[jira] [Closed] (BUILDR-406) Support for regexps in include and exclude patterns

     [ https://issues.apache.org/jira/browse/BUILDR-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald closed BUILDR-406.
-------------------------------


> Support for regexps in include and exclude patterns
> ---------------------------------------------------
>
>                 Key: BUILDR-406
>                 URL: https://issues.apache.org/jira/browse/BUILDR-406
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Core features
>    Affects Versions: 1.3.5
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>             Fix For: 1.4
>
>         Attachments: BUILDR-406.txt
>
>
> The filter class lets people set patterns for including or excluding elements from a package, a zip, etc.
> We currently support glob like patterns. It would be great to also support regular expressions.
> The plan would be to let users define include or exclude patterns using regular expressions that way:
> package(:zip).exclude(/\.*/)
> package(:zip).include(/[C|D][0-9]*/)
> Strings will still be used as glob patterns, so both mechanisms can complete each other:
> package(:zip).exclude("target").include(/test-.*\.html/)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira