for (int i = 0; i < schemaFiles.length; i++) {
try {
SchemaSG schemaSG = generator.generate(schemaFiles[i]);
if (producesFilesSet != null) {
JavaSourceFactory jsf = schemaSG.getJavaSourceFactory();
File targetDirectory = getTarget();
for (Iterator iter = jsf.getJavaSources(); iter.hasNext(); ) {
JavaSource js = (JavaSource) iter.next();
File f = jsf.getLocation(targetDirectory, js).getAbsoluteFile();
producesFilesSet.remove(f);
}
for (Iterator iter = jsf.getTextFiles(); iter.hasNext(); ) {
TextFile tf = (TextFile) iter.next();
File f = jsf.getLocation(targetDirectory, tf).getAbsoluteFile();
producesFilesSet.remove(f);
}
}
} catch (Exception e) {
throw new BuildException(e, getLocation());