public JavaToWSDL(ToolSpec toolspec) throws Exception {
super(TOOL_NAME, toolspec);
}
public void execute(boolean exitOnFinish) throws ToolException {
JavaToWSDLProcessor processor = new JavaToWSDLProcessor();
try {
super.execute(exitOnFinish);
if (!hasInfoOption()) {
ProcessorEnvironment env = new ProcessorEnvironment();
env.setParameters(getParametersMap(new HashSet()));
if (isVerboseOn()) {
env.put(ToolConstants.CFG_VERBOSE, Boolean.TRUE);
}
processor.setEnvironment(env);
processor.process();
definition = processor.getModel().getDefinition();
}
} catch (ToolException ex) {
if (ex.getCause() instanceof BadUsageException) {
getInstance().printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());
}