sgen.setSuppressNonFatalWarnings(_force);
sgen.setDestDir(_destDir.toString());
if (_force) { project.log("Suppressing non fatal warnings.", Project.MSG_VERBOSE); }
try {
sgen.generateSource(_schema.getAbsolutePath(), _pkgName);
} catch (IOException ex) {
project.log("Failed to compile " + _schema, Project.MSG_INFO);
throw new BuildException(ex);
}
}