Exemplo n.º 1
0
        private void Initialize()
        {
            this.rootElements.Clear();
            this.properties.Clear();

            foreach (XmlElement xe in this.xd.SelectNodes("/CamBuildProject/Property"))
            {
                Property prop = (Property)BuildFileElementFactory.Create(xe, this);
                this.properties.Add(prop);
                this.SetPropertyValue(prop.Name, ValueStringEvaluator.Evaluate(prop.Value, this));
            }

            this.rootElements = (List <IBuildFileElement>)BuildFileElementParser.Parse(this.xd, this);
        }
Exemplo n.º 2
0
        private void ParseActions()
        {
            XmlDocument xd = new XmlDocument();

            xd.LoadXml(this.xe.OuterXml);

            List <IBuildFileElement> elements = (List <IBuildFileElement>)BuildFileElementParser.Parse(xd, this.ParentBuildFile);

            foreach (IBuildFileElement element in elements)
            {
                if (element is IAction)
                {
                    this.actions.Add((IAction)element);
                }
            }
        }