Package org.gradle.api.tasks.util

Examples of org.gradle.api.tasks.util.PatternSet.copyFrom()


        return String.format("file set '%s'", dir);
    }

    public FileTree matching(PatternFilterable patterns) {
        PatternSet patternSet = this.patternSet.intersect();
        patternSet.copyFrom(patterns);
        DefaultConfigurableFileTree filtered = new DefaultConfigurableFileTree(getDir(), resolver, taskResolver);
        filtered.setPatternSet(patternSet);
        return filtered;
    }
View Full Code Here


     */
    @InputFiles
    @Input // Also marked as input to force tests to run when the set of candidate class files changes
    public FileTree getCandidateClassFiles() {
        PatternSet patterns = new PatternSet();
        patterns.copyFrom(patternSet);
        if (!isScanForTestClasses()) {
            if (patterns.getIncludes().isEmpty()) {
                patterns.include("**/*Tests.class", "**/*Test.class");
            }
            if (patterns.getExcludes().isEmpty()) {
View Full Code Here

        return matching(patternSet);
    }

    public FileTree matching(PatternFilterable patterns) {
        PatternSet patternSet = new PatternSet();
        patternSet.copyFrom(patterns);
        return new FilteredFileTree(this, patternSet.getAsSpec());
    }

    public Map<String, File> getAsMap() {
        final Map<String, File> map = new LinkedHashMap<String, File>();
View Full Code Here

        return Collections.singletonList(this);
    }

    public DirectoryFileTree filter(PatternFilterable patterns) {
        PatternSet patternSet = this.patternSet.intersect();
        patternSet.copyFrom(patterns);
        return new DirectoryFileTree(dir, patternSet);
    }

    public boolean contains(File file) {
        String prefix = dir.getAbsolutePath() + File.separator;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.