@groovy.transform.CompileStatic class ContainFilesSpec extends java.lang.Object
Matches only files from provided collection. Useful for exclude/include logic on file collection:
fileCollection.filter new ContainFilesSpec(someFiles)
to preserve only files containing in someFiles collection (include). And the opposite:
fileCollection.filter new NotSpec
to exclude all files in someFiles collection (exclude).
| Constructor and description |
|---|
ContainFilesSpec
(java.util.Set<java.io.File> files) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isSatisfiedBy(java.io.File element) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |