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(); }
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(); }
internal protected override void LoadFromElement(PomXmlElement element) { base.LoadFromElement(element); Executions = element.ReadElement("executions"); Configuration = element.ReadElement("configuration"); }