gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r575527 - in /gump/trunk/python/gump/core: build/mvn.py model/builder.py
Date Fri, 14 Sep 2007 04:33:01 GMT
Author: bodewig
Date: Thu Sep 13 21:32:55 2007
New Revision: 575527

URL: http://svn.apache.org/viewvc?rev=575527&view=rev
Log:
allow mvn tag to request a separate local repository for a build

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

Modified: gump/trunk/python/gump/core/build/mvn.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/build/mvn.py?rev=575527&r1=575526&r2=575527&view=diff
==============================================================================
--- gump/trunk/python/gump/core/build/mvn.py (original)
+++ gump/trunk/python/gump/core/build/mvn.py Thu Sep 13 21:32:55 2007
@@ -216,7 +216,7 @@
         if os.path.exists(settingsFile):
             project.addWarning('Overriding Maven2 settings: ['+settingsFile+']')
     
-        if self.needsSeparateLocalRepository():
+        if self.needsSeparateLocalRepository(project):
             localRepositoryDir = self.locateLocalRepo(project)
         else:
             localRepositoryDir = self.run.getWorkspace().getLocalRepositoryDirectory()
@@ -263,5 +263,5 @@
         return os.path.abspath(os.path.join(self.run.getWorkspace().getBaseDirectory(),
                                             project.getName() + ".mvnlocalrepo"))
 
-    def needsSeparateLocalRepository(self):
-        return False
+    def needsSeparateLocalRepository(self, project):
+        return project.mvn.needsSeparateLocalRepository()

Modified: gump/trunk/python/gump/core/model/builder.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/model/builder.py?rev=575527&r1=575526&r2=575527&view=diff
==============================================================================
--- gump/trunk/python/gump/core/model/builder.py (original)
+++ gump/trunk/python/gump/core/model/builder.py Thu Sep 13 21:32:55 2007
@@ -286,6 +286,8 @@
     	
         # Import the goal
         self.goal=self.getDomAttributeValue('goal','package')
+
+        self.separateLocalRepo = self.domAttributeIsTrue('separateLocalRepository')
             	    
     def getGoal(self):
         return self.goal
@@ -295,6 +297,11 @@
         Builder.dump(self,indent,output)
         i=getIndent(indent+1)
         output.write(i+'Goal: ' + self.getGoal() + '\n')
+
+    def needsSeparateLocalRepository(self):
+        """ Whether a separate local repository should be used for this build """
+        return self.separateLocalRepo
+
 
 # represents an <configure/> element
 class Configure(Builder):



Mime
View raw message