[GRADLE-730] Include and Exclude closures on Copy task don't work Created: 06/Nov/09 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.8 |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | Steve Appling | Assignee: | Steve Appling |
Resolution: | Fixed | Votes: | 0 |
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. |
Comments |
Comment by Steve Appling [ 06/Nov/09 ] |
Fixed and added integration test. |