Beispiel #1
0
        public override Hashtable GetToolArguments(string toolName, VcArgumentMap argMap, VcArgumentMap.ArgGroup ignoreGroup)
        {
            ExpansionHandler expander = new ExpansionHandler(ExpandMacros);

            Hashtable args;

            if (_parentConfig != null)
            {
                args = _parentConfig.GetToolArguments(toolName, argMap, ignoreGroup, expander);
            }
            else
            {
                args = CollectionsUtil.CreateCaseInsensitiveHashtable();
            }

            Hashtable toolSettings = (Hashtable)Tools[toolName];

            if (toolSettings != null)
            {
                foreach (DictionaryEntry de in toolSettings)
                {
                    string arg = argMap.GetArgument((string)de.Key, ExpandMacros((string)de.Value), ignoreGroup);
                    if (arg != null)
                    {
                        args[(string)de.Key] = arg;
                    }
                }
            }
            return(args);
        }
        internal Hashtable GetToolArguments(string toolName, VcArgumentMap argMap, VcArgumentMap.ArgGroup ignoreGroup, ExpansionHandler expander)
        {
            Hashtable args = CollectionsUtil.CreateCaseInsensitiveHashtable();

            Hashtable toolSettings = (Hashtable)Tools[toolName];

            if (toolSettings != null)
            {
                foreach (DictionaryEntry de in toolSettings)
                {
                    string arg = argMap.GetArgument((string)de.Key, expander((string)de.Value), ignoreGroup);
                    if (arg != null)
                    {
                        args[(string)de.Key] = arg;
                    }
                }
            }
            return(args);
        }
Beispiel #3
0
        public override Hashtable GetToolArguments(string toolName, VcArgumentMap argMap, VcArgumentMap.ArgGroup ignoreGroup)
        {
            ExpansionHandler expander = new ExpansionHandler(ExpandMacros);

            Hashtable args;
            if (_parentConfig != null) {
                args = _parentConfig.GetToolArguments(toolName, argMap, ignoreGroup, expander);
            } else {
                args = CollectionsUtil.CreateCaseInsensitiveHashtable();
            }

            Hashtable toolSettings = (Hashtable) Tools[toolName];
            if (toolSettings != null) {
                foreach (DictionaryEntry de in toolSettings) {
                    string arg = argMap.GetArgument((string) de.Key, ExpandMacros((string) de.Value), ignoreGroup);
                    if (arg != null) {
                        args[(string) de.Key] = arg;
                    }
                }
            }
            return args;
        }
Beispiel #4
0
        internal Hashtable GetToolArguments(string toolName, VcArgumentMap argMap, VcArgumentMap.ArgGroup ignoreGroup, ExpansionHandler expander)
        {
            Hashtable args = CollectionsUtil.CreateCaseInsensitiveHashtable();

            Hashtable toolSettings = (Hashtable) Tools[toolName];
            if (toolSettings != null) {
                foreach (DictionaryEntry de in toolSettings) {
                    string arg = argMap.GetArgument((string) de.Key, expander((string) de.Value), ignoreGroup);
                    if (arg != null) {
                        args[(string) de.Key] = arg;
                    }
                }
            }
            return args;
        }