示例#1
0
    bool finalizeOptions(IProperties *globals)
    {
        extractEsdlCmdOption(optIncludePath, globals, ESDLOPT_INCLUDE_PATH_ENV, ESDLOPT_INCLUDE_PATH_INI, NULL, NULL);

        if (optSource.isEmpty())
            throw MakeStringException( 0, "Source ESDL definition file (ecm|esdl|xml) must be provided" );

        return EsdlPublishCmdCommon::finalizeOptions(globals);
    }
示例#2
0
    virtual bool finalizeOptions(IProperties *globals)
    {
        extractEsdlCmdOption(optIncludePath, globals, ESDLOPT_INCLUDE_PATH_ENV, ESDLOPT_INCLUDE_PATH_INI, NULL, NULL);

        if (optSource.isEmpty())
        {
            usage();
            throw( MakeStringException(0, "Error: Path to ESDL Source required"));
        }

        if( optService.isEmpty() )
        {
            usage();
            throw( MakeStringException(0, "An ESDL service name must be specified") );
        }

        if( optMethod.isEmpty() )
        {
            usage();
            throw( MakeStringException(0, "An ESDL method name must be specified") );
        }
        cmdHelper.verbose = optVerbose;
        return true;
    }