throw new ToolException(ex.getMessage(), ex.getCause());
}
}
private void initialise(ProcessorEnvironment env) throws ToolException {
CommandDocument doc = super.getCommandDocument();
if (env.optionSet(ToolCorbaConstants.CFG_IDLFILE)) {
String idl = doc.getParameter(ToolCorbaConstants.CFG_IDLFILE);
env.put(ToolCorbaConstants.CFG_IDLFILE, idl);
}
if (env.optionSet(ToolCorbaConstants.CFG_TNS)) {
env.put(ToolCorbaConstants.CFG_TNS, doc.getParameter(ToolCorbaConstants.CFG_TNS));
}
if (env.optionSet(ToolConstants.CFG_OUTPUTDIR)) {
env.put(ToolConstants.CFG_OUTPUTDIR, doc.getParameter(ToolConstants.CFG_OUTPUTDIR));
}
if (env.optionSet(ToolCorbaConstants.CFG_ADDRESS)) {
env.put(ToolCorbaConstants.CFG_ADDRESS, doc.getParameter(ToolCorbaConstants.CFG_ADDRESS));
}
if (env.optionSet(ToolCorbaConstants.CFG_SEQUENCE_OCTET_TYPE)) {
env.put(ToolCorbaConstants.CFG_SEQUENCE_OCTET_TYPE,
doc.getParameter(ToolCorbaConstants.CFG_SEQUENCE_OCTET_TYPE));
}
if (env.optionSet(ToolCorbaConstants.CFG_SCHEMA_NAMESPACE)) {
env.put(ToolCorbaConstants.CFG_SCHEMA_NAMESPACE,
doc.getParameter(ToolCorbaConstants.CFG_SCHEMA_NAMESPACE));
}
if (env.optionSet(ToolCorbaConstants.CFG_LOGICAL)) {
env.put(ToolCorbaConstants.CFG_LOGICAL,
doc.getParameter(ToolCorbaConstants.CFG_LOGICAL));
}
if (env.optionSet(ToolCorbaConstants.CFG_PHYSICAL)) {
env.put(ToolCorbaConstants.CFG_PHYSICAL,
doc.getParameter(ToolCorbaConstants.CFG_PHYSICAL));
}
if (env.optionSet(ToolCorbaConstants.CFG_SCHEMA)) {
env.put(ToolCorbaConstants.CFG_SCHEMA,
doc.getParameter(ToolCorbaConstants.CFG_SCHEMA));
}
if (env.optionSet(ToolCorbaConstants.CFG_WSDL_ENCODING)) {
env.put(ToolCorbaConstants.CFG_WSDL_ENCODING,
doc.getParameter(ToolCorbaConstants.CFG_WSDL_ENCODING));
}
if (env.optionSet(ToolCorbaConstants.CFG_IMPORTSCHEMA)) {
env.put(ToolCorbaConstants.CFG_IMPORTSCHEMA,
doc.getParameter(ToolCorbaConstants.CFG_IMPORTSCHEMA));
}
if (env.optionSet(ToolCorbaConstants.CFG_MODULETONS)) {
env.put(ToolCorbaConstants.CFG_MODULETONS,
doc.getParameter(ToolCorbaConstants.CFG_MODULETONS));
}
if (env.optionSet(ToolCorbaConstants.CFG_INCLUDEDIR)) {
env.put(ToolCorbaConstants.CFG_INCLUDEDIR,
doc.getParameters(ToolCorbaConstants.CFG_INCLUDEDIR));
}
if (env.optionSet(ToolCorbaConstants.CFG_WSDLOUTPUTFILE)) {
env.put(ToolCorbaConstants.CFG_WSDLOUTPUTFILE,
doc.getParameter(ToolCorbaConstants.CFG_WSDLOUTPUTFILE));
}
if (env.optionSet(ToolCorbaConstants.CFG_EXCLUDEMODULES)) {
env.put(ToolCorbaConstants.CFG_EXCLUDEMODULES,
doc.getParameter(ToolCorbaConstants.CFG_EXCLUDEMODULES));
}
}