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);
}
}
}
Aggregations