Search in sources :

Example 1 with FileMatchingConfiguration

use of org.eclipse.jetty.ant.types.FileMatchingConfiguration in project jetty.project by eclipse.

the class AntWebAppContext method getScanTargetFiles.

public List getScanTargetFiles() {
    if (this.scanTargets == null)
        return null;
    FileMatchingConfiguration configuration = new FileMatchingConfiguration();
    configuration.addDirectoryScanner(scanTargets.getDirectoryScanner(project));
    return configuration.getBaseDirectories();
}
Also used : FileMatchingConfiguration(org.eclipse.jetty.ant.types.FileMatchingConfiguration)

Example 2 with FileMatchingConfiguration

use of org.eclipse.jetty.ant.types.FileMatchingConfiguration in project jetty.project by eclipse.

the class AntWebAppContext method getLibrariesConfiguration.

/**
     * @return a <code>FileMatchingConfiguration</code> object describing the
     *         configuration of all libraries added to this particular web app
     *         (both classes and libraries).
     */
public FileMatchingConfiguration getLibrariesConfiguration() {
    FileMatchingConfiguration config = new FileMatchingConfiguration();
    Iterator classesIterator = classes.iterator();
    while (classesIterator.hasNext()) {
        FileSet clazz = (FileSet) classesIterator.next();
        config.addDirectoryScanner(clazz.getDirectoryScanner(project));
    }
    Iterator librariesIterator = libraries.iterator();
    while (librariesIterator.hasNext()) {
        FileSet library = (FileSet) librariesIterator.next();
        config.addDirectoryScanner(library.getDirectoryScanner(project));
    }
    return config;
}
Also used : FileSet(org.apache.tools.ant.types.FileSet) Iterator(java.util.Iterator) FileMatchingConfiguration(org.eclipse.jetty.ant.types.FileMatchingConfiguration)

Aggregations

FileMatchingConfiguration (org.eclipse.jetty.ant.types.FileMatchingConfiguration)2 Iterator (java.util.Iterator)1 FileSet (org.apache.tools.ant.types.FileSet)1