//ErrorVisitor errors = new ErrorVisitor();
try {
super.execute(exitOnFinish);
//checkParams(errors);
if (!hasInfoOption()) {
ToolContext env = new ToolContext();
env.setParameters(getParametersMap(new HashSet()));
if (env.get(ToolConstants.CFG_OUTPUTDIR) == null) {
env.put(ToolConstants.CFG_OUTPUTDIR, ".");
}
if (env.get(ToolConstants.CFG_SOURCEDIR) == null) {
env.put(ToolConstants.CFG_SOURCEDIR, ".");
}
if (isVerboseOn()) {
env.put(ToolConstants.CFG_VERBOSE, Boolean.TRUE);
}
String ft = (String)env.get(ToolConstants.CFG_FRONTEND);
if (ft == null || ToolConstants.JAXWS_FRONTEND.equals(ft)) {
ft = ToolConstants.JAXWS_FRONTEND;
} else {
ft = ToolConstants.SIMPLE_FRONTEND;
//use aegis databinding for simple front end by default
env.put(ToolConstants.CFG_DATABINDING, ToolConstants.AEGIS_DATABINDING);
}
env.put(ToolConstants.CFG_FRONTEND, ft);
processWSDL(env, ft);
}
} catch (ToolException ex) {
if (ex.getCause() instanceof BadUsageException) {
printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());