gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r534807 - /gump/trunk/python/gump/core/build/mvn.py
Date Thu, 03 May 2007 11:58:27 GMT
Author: bodewig
Date: Thu May  3 04:58:26 2007
New Revision: 534807

URL: http://svn.apache.org/viewvc?view=rev&rev=534807
Log:
Add support for properties

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

Modified: gump/trunk/python/gump/core/build/mvn.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/build/mvn.py?view=diff&rev=534807&r1=534806&r2=534807
==============================================================================
--- gump/trunk/python/gump/core/build/mvn.py (original)
+++ gump/trunk/python/gump/core/build/mvn.py Thu May  3 04:58:26 2007
@@ -156,6 +156,8 @@
         if project.getWorkspace().isVerbose()  or project.isVerbose() or verbose: 
             cmd.addParameter('--exception') 
         
+        cmd.addNamedParameters(getProperties(project))
+
         #
         # Suppress downloads
         #          
@@ -177,6 +179,13 @@
     
         return cmd
   
+    def getProperties(self,project):
+        """ Get properties for a project """
+        properties = Parameters()
+        for property in project.getMvn().getProperties():
+            properties.addPrefixedNamedParameter('-D',property.name,property.value,'=')
+        return properties
+
         # Do this even if not ok
     def performPreBuild(self, project, languageHelper, stats):
                    



Mime
View raw message