예제 #1
0
        internal protected override void LoadFromElement(PomXmlElement element)
        {
            base.LoadFromElement(element);

            Scope      = element.ReadElementValue("scope");
            Type       = element.ReadElementValue("type");
            Classifier = element.ReadElementValue("classifier");

            bool optional;

            Optional = bool.TryParse(element.ReadElementValue("optional"), out optional) && optional;
        }
예제 #2
0
파일: Project.cs 프로젝트: Samarkin/pustota
        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();
        }
예제 #3
0
 internal protected override void LoadFromElement(PomXmlElement element)
 {
     base.LoadFromElement(element);
     RelativePath = element.ReadElementValue("relativePath");
 }
예제 #4
0
 internal protected virtual void LoadFromElement(PomXmlElement element)
 {
     ArtifactId = element.ReadElementValue("artifactId");
     GroupId    = element.ReadElementValue("groupId");
     Version    = element.ReadElementValue("version");
 }
예제 #5
0
 internal protected override void LoadFromElement(PomXmlElement element)
 {
     Id = element.ReadElementValue("id");
     base.LoadFromElement(element);
 }