set.add(ToolConstants.CFG_NEXCLUDE);
return set;
}
public void execute(boolean exitOnFinish) {
WSDLToJavaProcessor processor = new WSDLToJavaProcessor();
try {
super.execute(exitOnFinish);
if (!hasInfoOption()) {
ProcessorEnvironment env = new ProcessorEnvironment();
env.setParameters(getParametersMap(getArrayKeys()));
if (env.get(ToolConstants.CFG_OUTPUTDIR) == null) {
env.put(ToolConstants.CFG_OUTPUTDIR, ".");
}
if (env.containsKey(ToolConstants.CFG_ANT)) {
setAntProperties(env);
setLibraryReferences(env);
}
if (isVerboseOn()) {
env.put(ToolConstants.CFG_VERBOSE, Boolean.TRUE);
}
env.put(ToolConstants.CFG_CMD_ARG, args);
validate(env);
loadDefaultNSPackageMapping(env);
setPackageAndNamespaces(env);
setExcludePackageAndNamespaces(env);
processor.setEnvironment(env);
processor.process();
}
} catch (ToolException ex) {
System.err.println("Error : " + ex.getMessage());
if (ex.getCause() instanceof BadUsageException) {
getInstance().printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());