try {
ICodeWriter cw = new FileCodeWriter(options.destDir, false);
if( !options.quiet ) {
XjcErrorListenerAdapter xjcErrorListenerAdapter = new XjcErrorListenerAdapter(listener);
cw = new ProgressCodeWriter(cw,xjcErrorListenerAdapter, targetFiles.size());
}
// then print them out
CodeBuilder.build(targetFiles, cw);
} catch (IOException e) {