Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-730

Include and Exclude closures on Copy task don't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9-rc-1

      Description

      Includes and excludes using closures don't work in the Copy task. The following example does not work:

      task (copy, type:Copy) {
         from 'src'
         into 'dest'
         exclude { fte ->
            fte.file.name == 'bad.file'
         }
      }
      

      The include and exclude closures are supported by PatternFilterable, but the Copy tasks extracts a new composite PatterSet from the hierarchical CopySpec before actually doing the copy and extraction of the Spec forms of include and exclude was never added.

      I will add an integration test for this.

        Attachments

          Activity

            People

            Assignee:
            sappling Steve Appling
            Reporter:
            sappling Steve Appling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: