-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 2.0-rc-1
When using "with" to add a child CopySpec to a Copy task, the eachFile visitor does not visit the files in the child spec. Here is a simple example:
build.gradle
task one(type: Copy) { from 'src' into 'target' } task two(type: Copy) { with one into 'newtarget' eachFile { println("two: $it.name") } }
Where the `src` directory has some arbitrary files in it. I would expect to see the output lines beginning with `two`, but instead I get:
$ gradle two :two BUILD SUCCESSFUL