String schema = (String) iterator.next();
args.add(new File(schema).toURI().toString());
}
try {
getLog().info("Generating Java sources in " + getTargetDirectory() + " from schemas available in " + getDirectory() + "...");
CodeGen.main((String[]) args.toArray(new String[args.size()]));
} catch (JiBXException e) {
Throwable cause = (e.getRootCause() != null) ? e.getRootCause() : e;
throw new MojoExecutionException(cause.getLocalizedMessage(), cause);
} catch (Exception e) {
Throwable cause = (e.getCause() != null) ? e.getCause() : e;