Search in sources :

Example 6 with CommandDocument

use of org.apache.cxf.tools.common.toolspec.parser.CommandDocument in project cxf by apache.

the class IDLToWSDL method initialise.

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));
    }
}
Also used : CommandDocument(org.apache.cxf.tools.common.toolspec.parser.CommandDocument)

Aggregations

CommandDocument (org.apache.cxf.tools.common.toolspec.parser.CommandDocument)6 ToolException (org.apache.cxf.tools.common.ToolException)3 BadUsageException (org.apache.cxf.tools.common.toolspec.parser.BadUsageException)3 Message (org.apache.cxf.common.i18n.Message)2 ErrorVisitor (org.apache.cxf.tools.common.toolspec.parser.ErrorVisitor)2 File (java.io.File)1 HashMap (java.util.HashMap)1 ProcessorEnvironment (org.apache.cxf.tools.corba.common.ProcessorEnvironment)1 WSDLToCorbaProcessor (org.apache.cxf.tools.corba.processors.wsdl.WSDLToCorbaProcessor)1