[GRADLE-3022] filesMatching matches destination path instead of source path Created: 12/Feb/14  Updated: 28/Aug/14  Resolved: 18/Aug/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.2-rc-1

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

The following fails:

       given:
       file("a/b.txt") << "\$foo"

       when:
       buildScript """
           task c(type: Copy) {
               from("a") {
                   filesMatching("b.txt") {
                       expand foo: "bar"
                   }
                   into "nested"
               }
               into "out"
           }
       """

       then:
       succeeds "c"

       and:
       file("out/nested/b.txt").text == "bar"

The filesMatching pattern matches against the destination path, and not the source path.


Generated at Wed Jun 30 12:37:47 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.