Examples of appendExcludes()


Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

    final FileSet set = new FileSet();
    set.setProject(getProject());
    log("Scanning " + dir);
    set.setDir(new File(dir));
    set.appendIncludes(includes);
    set.appendExcludes(excludes);
    return set.getDirectoryScanner().getIncludedFiles();
  }

  private class AntLogger implements Logger {
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

            // preserveInTarget would find all files we want to keep,
            // but we need to find all that we want to delete - so the
            // meaning of all patterns and selectors must be inverted
            PatternSet ps = syncTarget.mergePatterns(getProject());
            fs.appendExcludes(ps.getIncludePatterns(getProject()));
            fs.appendIncludes(ps.getExcludePatterns(getProject()));
            fs.setDefaultexcludes(!syncTarget.getDefaultexcludes());

            // selectors are implicitly ANDed in DirectoryScanner.  To
            // revert their logic we wrap them into a <none> selector
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

    final FileSet set = new FileSet();
    log("Scanning " + dir);
    set.setProject(getProject());
    set.setDir(new File(dir));
    set.appendIncludes(includes);
    set.appendExcludes(excludes);
    return set.getDirectoryScanner().getIncludedFiles();
  }

}
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

            testFileSet.appendIncludes((String[]) includes.toArray(new String[includes.size()]));
            getLog().debug("Appending includes: " + includes);

            if (excludes != null && excludes.size() > 0) {
                testFileSet.appendExcludes((String[]) excludes.toArray(new String[excludes.size()]));
                getLog().debug("Appending excludes: " + excludes);
            }

            testsToRun.add(testFileSet);
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

            testFileSet.appendIncludes((String[]) includes.toArray(new String[includes.size()]));
            getLog().info("INCLUDING: " + includes);

            if (excludes != null && excludes.size() > 0) {
                testFileSet.appendExcludes((String[]) excludes.toArray(new String[excludes.size()]));
                getLog().info("EXCLUDING: " + excludes);
            }

            testsToRun.add(testFileSet);
        }
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

        FileSet testFileSet = new FileSet();
        testFileSet.setProject(antProject);
        testFileSet.setDir(directory);
        testFileSet.appendIncludes((String[]) includes.toArray(new String[includes.size()]));
        if (excludes != null && !excludes.isEmpty()) {
            testFileSet.appendExcludes((String[]) excludes.toArray(new String[excludes.size()]));
        }
        return testFileSet;
    }

    /**
 
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

        final List/*<String>*/ includesExpanded = explodePaths(directory, includes);
        testFileSet.appendIncludes((String[]) includesExpanded.toArray(new String[includesExpanded.size()]));

        if (excludes != null && !excludes.isEmpty()) {
            final List/*<String>*/ excludesExpanded = explodePaths(directory, excludes);
            testFileSet.appendExcludes((String[]) excludesExpanded.toArray(new String[excludesExpanded.size()]));
        }
        return testFileSet;
    }

    /**
 
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

            for (Object o : Arrays.asList(includes.split(","))) {
                set.appendIncludes(new String[]{((String) o).trim()});
            }
            // ensure whitespace is ignored from around the components of the excludes
            for (Object o : Arrays.asList(excludes.split(","))) {
                set.appendExcludes(new String[]{((String) o).trim()});
            }
            filesets.add(set);
        }
        for (Object fileset : filesets) {
            FileSet fs = (FileSet) fileset;
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

        final List<String> includesExpanded = explodePaths(directory, includes);
        testFileSet.appendIncludes(includesExpanded.toArray(new String[includesExpanded.size()]));

        if (excludes != null && !excludes.isEmpty()) {
            final List<String> excludesExpanded = explodePaths(directory, excludes);
            testFileSet.appendExcludes(excludesExpanded.toArray(new String[excludesExpanded.size()]));
        }
        return testFileSet;
    }

    /**
 
View Full Code Here

Examples of org.apache.tools.ant.types.FileSet.appendExcludes()

            // preserveInTarget would find all files we want to keep,
            // but we need to find all that we want to delete - so the
            // meaning of all patterns and selectors must be inverted
            PatternSet ps = syncTarget.mergePatterns(getProject());
            fs.appendExcludes(ps.getIncludePatterns(getProject()));
            fs.appendIncludes(ps.getExcludePatterns(getProject()));
            fs.setDefaultexcludes(!syncTarget.getDefaultexcludes());

            // selectors are implicitly ANDed in DirectoryScanner.  To
            // revert their logic we wrap them into a <none> selector
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.