jlleitschuh
11/16/2016, 11:33 PMFileTree
@HasInternalProtocol
public interface FileTree extends FileCollection {
/**
* <p>Restricts the contents of this tree to those files matching the given filter. The filtered tree is live, so
* that any changes to this tree are reflected in the filtered tree.</p>
*
* <p>The given closure is used to configure the filter. A {@link org.gradle.api.tasks.util.PatternFilterable} is
* passed to the closure as its delegate. Only files which match the specified include patterns will be included in
* the filtered tree. Any files which match the specified exclude patterns will be excluded from the filtered
* tree.</p>
*
* @param filterConfigClosure the closure to use to configure the filter.
* @return The filtered tree.
*/
FileTree matching(Closure filterConfigClosure);
/**
* <p>Restricts the contents of this tree to those files matching the given filter. The filtered tree is live, so
* that any changes to this tree are reflected in the filtered tree.</p>
*
* <p>The given pattern set is used to configure the filter. Only files which match the specified include patterns
* will be included in the filtered tree. Any files which match the specified exclude patterns will be excluded from
* the filtered tree.</p>
*
* @param patterns the pattern set to use to configure the filter.
* @return The filtered tree.
*/
FileTree matching(PatternFilterable patterns);