org.apache.tools.ant.types.DirSet Java Examples

The following examples show how to use org.apache.tools.ant.types.DirSet. 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: Groovydoc.java    From groovy with Apache License 2.0 6 votes vote down vote up
public Groovydoc() {
    packageNames = new ArrayList<>();
    excludePackageNames = new ArrayList<>();
    packageSets = new ArrayList<DirSet>();
    sourceFilesToDoc = new ArrayList<>();
    privateScope = false;
    protectedScope = false;
    publicScope = false;
    packageScope = false;
    useDefaultExcludes = true;
    includeNoSourcePackages = false;
    author = true;
    processScripts = true;
    includeMainForScripts = true;
    noTimestamp = false;
    noVersionStamp = false;
}
 
Example #2
Source File: CreateDependenciesTest.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public void testDependencies() throws Exception {
    CreateDependencies d = new CreateDependencies();
    
    Project prj = new Project();
    DirSet ds = new DirSet();
    File dependencies = new File(nb_all, "dependencies");

    ds.setProject(prj);
    ds.setDir(nb_all);
    prj.addReference("x", ds);
    prj.setProperty("nb_all", nb_all.getAbsolutePath());
    d.setProject(prj);
    d.getProject();
    d.setRefid("x");
    d.setDependencies(dependencies);
    d.execute();

    assertFileContent(dependencies,
                      "This project's dependencies\n" +
                      "\n" +
                      "\n" +
                      "Runtime dependencies:\n" +
                      "=====================\n" +
                      "\n" +
                      "From: XC\n" +
                      "  - XA: XB (XD)\n" +
                      "    License: Test license\n" +
                      "\n");
}
 
Example #3
Source File: CreateDependenciesTest.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public void testCompileTimeDependencies() throws Exception {
    CreateDependencies d = new CreateDependencies();
    
    Project prj = new Project();
    DirSet ds = new DirSet();
    File dependencies = new File(nb_all, "dependencies");

    ds.setProject(prj);
    ds.setDir(nb_all);
    prj.addReference("x", ds);
    prj.setProperty("nb_all", nb_all.getAbsolutePath());
    d.setProject(prj);
    d.getProject();
    d.setRefid("x");
    d.setDependencies(dependencies);
    d.setSourceDependencies(true);
    d.execute();

    assertFileContent(dependencies,
                      "This project's dependencies\n" +
                      "\n" +
                      "\n" +
                      "Runtime dependencies:\n" +
                      "=====================\n" +
                      "\n" +
                      "From: XC\n" +
                      "  - XA: XB (XD)\n" +
                      "    License: Test license\n" +
                      "\n" +
                      "\n" +
                      "Compile time dependencies:\n" +
                      "==========================\n" +
                      "\n" +
                      "From: XC2\n" +
                      "  - XA2: XB2 (XD2)\n" +
                      "    License: Test license2\n" +
                      "\n");
}
 
Example #4
Source File: CreateDependencies.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private Map<String,Map<String,String>> findBinary2LicenseHeaderMapping() throws IOException {
    DirSet sources = getProject().getReference(refid);
    Map<String,Map<String,String>> file2LicenseHeaders = new HashMap<>();
    for (Resource r : sources) {
        processModule(r.getName(), file2LicenseHeaders);
    }
    return file2LicenseHeaders;
}
 
Example #5
Source File: AddPathTask.java    From ant-ivy with Apache License 2.0 4 votes vote down vote up
public void addDirset(DirSet dset) throws BuildException {
    toAdd.addDirset(dset);
}
 
Example #6
Source File: DeleteUnreferencedClusterFiles.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**
 * Set of cluster directories to scan.
 * Any dir lacking an update_tracking subdir is automatically ignored.
 */
public void addConfiguredClusters(DirSet clusters) {
    this.clusters = clusters;
}
 
Example #7
Source File: FindBugsTask.java    From spotbugs with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Add a nested dirset of classes dirs.
 *
 * @param fs
 *            nested dirset of classes dirs
 */
public void addDirset(DirSet fs) {
    dirsets.add(fs);
}