Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-406

Support for regexps in include and exclude patterns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.4
    • Core features
    • None

    Description

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

      Attachments

        1. BUILDR-406.txt
          3 kB
          Antoine Toulme

        Activity

          People

            toulmean Antoine Toulme
            toulmean Antoine Toulme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: