gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1083707 - /gump/trunk/python/gump/core/model/builder.py
Date Mon, 21 Mar 2011 08:56:04 GMT
Author: bodewig
Date: Mon Mar 21 08:56:04 2011
New Revision: 1083707

URL: http://svn.apache.org/viewvc?rev=1083707&view=rev
Log:
add groupId attribute to mvn[23]install which doxia-parent unsuccessfully tries to use

Modified:
    gump/trunk/python/gump/core/model/builder.py

Modified: gump/trunk/python/gump/core/model/builder.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/model/builder.py?rev=1083707&r1=1083706&r2=1083707&view=diff
==============================================================================
--- gump/trunk/python/gump/core/model/builder.py (original)
+++ gump/trunk/python/gump/core/model/builder.py Mon Mar 21 08:56:04 2011
@@ -350,6 +350,7 @@ class MvnInstall(Maven):
     PARENT = 'parent'
     POM = 'pom'
     VERSION = 'version'
+    GROUP_ID = 'groupId'
 
     def __init__(self, dom, project, version = MVN_VERSION2):
         Maven.__init__(self, dom, project, version)
@@ -359,6 +360,7 @@ class MvnInstall(Maven):
         self.file = self.getDomAttributeValue(MvnInstall.FILE, 'pom.xml')
         self.artifactVersion = self.getDomAttributeValue(MvnInstall.VERSION)
         self.artifactId = self.getDomAttributeValue(MvnInstall.ARTIFACT_ID)
+        self.groupId = self.getDomAttributeValue(MvnInstall.GROUP_ID)
 
     def expand(self, project, workspace):
         """ Turns the builder's attributes into properties """
@@ -367,7 +369,8 @@ class MvnInstall(Maven):
         impl = getDOMImplementation()
         self._add_property(impl, MvnInstall.ARTIFACT_ID,
                            self.artifactId or project.getName())
-        self._add_property(impl, 'groupId', project.getArtifactGroup())
+        self._add_property(impl, MvnInstall.GROUP_ID,
+                           self.groupId or project.getArtifactGroup())
         self._add_property(impl, MvnInstall.PACKAGING, self.packaging)
         self._add_property(impl, MvnInstall.FILE, self.file)
         if self.artifactVersion:



Mime
View raw message