buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1422459 - in /buildr/trunk: CHANGELOG lib/buildr/packaging/artifact.rb
Date Sun, 16 Dec 2012 02:41:47 GMT
Author: donaldp
Date: Sun Dec 16 02:41:46 2012
New Revision: 1422459

URL: http://svn.apache.org/viewvc?rev=1422459&view=rev
Log:
Defer the expansion of generated poms by wrapping the generation in a Proc.

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/packaging/artifact.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1422459&r1=1422458&r2=1422459&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Sun Dec 16 02:41:46 2012
@@ -1,4 +1,6 @@
 1.4.10 (Pending)
+* Change: Defer the expansion of generated poms by wrapping the generation
+          in a Proc.
 * Change: Rework Artifact.content(value) method to accept a Proc that
           will be called before the artifact is written rather than
           requiring a string.

Modified: buildr/trunk/lib/buildr/packaging/artifact.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/artifact.rb?rev=1422459&r1=1422458&r2=1422459&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/artifact.rb (original)
+++ buildr/trunk/lib/buildr/packaging/artifact.rb Sun Dec 16 02:41:46 2012
@@ -139,14 +139,16 @@ module Buildr
     #
     # Creates POM XML for this artifact.
     def pom_xml
-      xml = Builder::XmlMarkup.new(:indent=>2)
-      xml.instruct!
-      xml.project do
-        xml.modelVersion  '4.0.0'
-        xml.groupId       group
-        xml.artifactId    id
-        xml.version       version
-        xml.classifier    classifier if classifier
+      Proc.new do
+        xml = Builder::XmlMarkup.new(:indent=>2)
+        xml.instruct!
+        xml.project do
+          xml.modelVersion  '4.0.0'
+          xml.groupId       group
+          xml.artifactId    id
+          xml.version       version
+          xml.classifier    classifier if classifier
+        end
       end
     end
 



Mime
View raw message