Search in sources :

Example 1 with FileScanner

use of org.apache.tools.ant.FileScanner in project processdash by dtuma.

the class SVGToImage method execute.

public void execute() {
    if (verbose)
        log("Building SVG images");
    for (Iterator it = filesets.iterator(); it.hasNext(); ) {
        FileSet fs = (FileSet) it.next();
        FileScanner scanner = fs.getDirectoryScanner(getProject());
        String[] files = scanner.getIncludedFiles();
        try {
            File basedir = scanner.getBasedir();
            if (verbose)
                log("Scanning " + basedir);
            for (int i = 0; i < files.length; i++) {
                translate(basedir, files[i]);
            }
        } catch (Exception e) {
            throw new BuildException(e);
        }
    }
}
Also used : FileSet(org.apache.tools.ant.types.FileSet) Iterator(java.util.Iterator) BuildException(org.apache.tools.ant.BuildException) File(java.io.File) IOException(java.io.IOException) BuildException(org.apache.tools.ant.BuildException) FileScanner(org.apache.tools.ant.FileScanner)

Aggregations

File (java.io.File)1 IOException (java.io.IOException)1 Iterator (java.util.Iterator)1 BuildException (org.apache.tools.ant.BuildException)1 FileScanner (org.apache.tools.ant.FileScanner)1 FileSet (org.apache.tools.ant.types.FileSet)1