[GRADLE-1301] Add exclude/include pattern on filtering feature Created: 10/Jan/11 Updated: 11/Nov/13 Resolved: 11/Nov/13
Gradle does not allow to copy a fileset and apply a content filtering only to a subset of the set.
The common workaround uses two copy. One with include and the filtering on, one with the exclude and the filtering off:
An improvment could be to add include/exclude pattern on filtering:
|Comment by Adam Murdoch [ 11/Nov/13 ]|
You can use filesMatching(), filesNotMatching() and eachFile() to fine tune which files are filtered. An example: http://www.gradle.org/docs/1.7/release-notes#pattern-based-file-copy-configuration