Java Code Examples for org.gradle.api.tasks.util.PatternSet#copyFrom()

The following examples show how to use org.gradle.api.tasks.util.PatternSet#copyFrom() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractFileTree.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public FileTree matching(PatternFilterable patterns) {
    PatternSet patternSet = new PatternSet();
    patternSet.copyFrom(patterns);
    return new FilteredFileTree(this, patternSet.getAsSpec());
}
 
Example 2
Source File: DirectoryFileTree.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DirectoryFileTree filter(PatternFilterable patterns) {
    PatternSet patternSet = this.patternSet.intersect();
    patternSet.copyFrom(patterns);
    return new DirectoryFileTree(dir, patternSet);
}
 
Example 3
Source File: AbstractFileTree.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public FileTree matching(PatternFilterable patterns) {
    PatternSet patternSet = new PatternSet();
    patternSet.copyFrom(patterns);
    return new FilteredFileTree(this, patternSet.getAsSpec());
}
 
Example 4
Source File: DirectoryFileTree.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DirectoryFileTree filter(PatternFilterable patterns) {
    PatternSet patternSet = this.patternSet.intersect();
    patternSet.copyFrom(patterns);
    return new DirectoryFileTree(dir, patternSet);
}
 
Example 5
Source File: CheckForbiddenApis.java    From forbidden-apis with Apache License 2.0 4 votes vote down vote up
/** @see #getPatternSet() */
public void setPatternSet(PatternSet patternSet) {
  patternSet.copyFrom(patternSet);
}
 
Example 6
Source File: AbstractFileTree.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public FileTree matching(PatternFilterable patterns) {
    PatternSet patternSet = new PatternSet();
    patternSet.copyFrom(patterns);
    return new FilteredFileTree(this, patternSet.getAsSpec());
}
 
Example 7
Source File: DirectoryFileTree.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DirectoryFileTree filter(PatternFilterable patterns) {
    PatternSet patternSet = this.patternSet.intersect();
    patternSet.copyFrom(patterns);
    return new DirectoryFileTree(dir, patternSet);
}
 
Example 8
Source File: AbstractFileTree.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public FileTree matching(PatternFilterable patterns) {
    PatternSet patternSet = new PatternSet();
    patternSet.copyFrom(patterns);
    return new FilteredFileTree(this, patternSet.getAsSpec());
}
 
Example 9
Source File: DirectoryFileTree.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DirectoryFileTree filter(PatternFilterable patterns) {
    PatternSet patternSet = this.patternSet.intersect();
    patternSet.copyFrom(patterns);
    return new DirectoryFileTree(dir, patternSet);
}