Ejemplo n.º 1
0
        internal protected virtual void LoadFromElement(PomXmlElement element)
        {
            //load project properties
            var propertiesNode = element.ReadElement("properties");

            if (propertiesNode != null)
            {
                Properties = propertiesNode.Elements
                             .Select(e => (IProperty) new Property(e)).ToList();
            }

            //load modules
            Modules = element.ReadElements("modules", "module")
                      .Select(e => (IModule) new Module(e)).ToList();

            //load dependencies
            Dependencies = element.ReadElements("dependencies", "dependency")
                           .Select(e => _dataFactory.CreateDependency(e)).ToList();

            // load plugins
            Plugins = element.ReadElements("build", "plugins", "plugin")
                      .Select(e => _dataFactory.CreatePlugin(e)).ToList();

            // load pluginManagement
            PluginManagement = element.ReadElements("build", "pluginManagement", "plugins", "plugin")
                               .Select(e => _dataFactory.CreatePlugin(e)).ToList();
        }
Ejemplo n.º 2
0
        protected internal override void LoadFromElement(PomXmlElement element)
        {
            base.LoadFromElement(element);

            Packaging    = element.ReadElementValue("packaging");
            Name         = element.ReadElementValue("name");
            ModelVersion = element.ReadElementValue("modelVersion");

            //read parent
            var parentNode = element.ReadElement("parent");

            Parent = parentNode == null ? null : _dataFactory.CreateParentReference(parentNode);

            _container.LoadFromElement(element);

            //load profiles
            Profiles = element.ReadElements("profiles", "profile")
                       .Select(e => _dataFactory.CreateProfile(e)).ToList();
        }
Ejemplo n.º 3
0
 internal protected override void LoadFromElement(PomXmlElement element)
 {
     base.LoadFromElement(element);
     Executions    = element.ReadElement("executions");
     Configuration = element.ReadElement("configuration");
 }