public void execute () throws BuildException {
destDir.mkdirs ();
numGenerated = 0;
try {
JavaDocBuilder builder = new JavaDocBuilder ();
for (int i = 0; i < fileSets.size (); i++) {
FileSet fs = (FileSet) fileSets.get (i);
DirectoryScanner ds = fs.getDirectoryScanner(project);
File fromDir = fs.getDir(project);
String[] srcFiles = ds.getIncludedFiles();
for (int j = 0; j < srcFiles.length; j++) {
String srcName = srcFiles[j];
File sourceFile = new File (fromDir, srcName);
builder.addSource (sourceFile);
}
}
JavaClass[] classes = builder.getClasses ();
for (int i = 0; i < classes.length; i++) {
generateClassAndInners (classes[i]);
}
log ("Generated attribute information for " + numGenerated + " classes. Ignored " + numIgnored + " classes.");