Examples of appendIncludes()


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

      final String[] excludes) {
    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.appendIncludes()

            // 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
            // instead.
View Full Code Here

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

      final String[] excludes) {
    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.appendIncludes()

            testFileSet.setProject(antProj);

            testFileSet.setDir(testRootDir);


            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);
View Full Code Here

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

            if (alwaysRunTests != null) {
                // create  fileset
                final FileSet alwaysRunFileSet = new FileSet();
                alwaysRunFileSet.setProject(antProj);
                alwaysRunFileSet.setDir(testRootDir);
                alwaysRunFileSet.appendIncludes((String[]) alwaysRunTests.toArray(new String[alwaysRunTests.size()]));

                // add it to an AlwaysRunTestSet
                final CloverAlwaysRunTestSet alwaysRunTestSet = new CloverAlwaysRunTestSet();
                alwaysRunTestSet.setProject(antProj);
                alwaysRunTestSet.add(alwaysRunFileSet);
View Full Code Here

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

            testFileSet.setProject(antProj);

            testFileSet.setDir(testRootDir);


            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);
View Full Code Here

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

    private FileSet createFileSet(Project antProject, final File directory, List includes, List excludes) {
       
        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.appendIncludes()

        final FileSet testFileSet = new FileSet();
        testFileSet.setProject(antProject);
        testFileSet.setDir(directory);

        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()]));
        }
View Full Code Here

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

            }
        };
        Paranamer paranamer = new Paranamer();
        FileSet fileset = new FileSet();
        fileset.setDir(paranamer.getProject().getBaseDir());
        fileset.appendIncludes(new String[] { "**/A.java", "**/C.java" });
        paranamer.addFileset(fileset);
        paranamer.execute();
        final Set<String> expected = new HashSet<String>(Arrays.asList(A.class.getName(),
                C.class.getName()));
        Assert.assertTrue("Expected: "
View Full Code Here

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

            }
        };
        Paranamer paranamer = new Paranamer();
        FileSet a = new FileSet();
        a.setDir(paranamer.getProject().getBaseDir());
        a.appendIncludes(new String[] { "**/A.java" });
        paranamer.addFileset(a);
        FileSet c = new FileSet();
        c.setDir(paranamer.getProject().getBaseDir());
        c.appendIncludes(new String[] { "**/C.java" });
        paranamer.addFileset(c);
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.