maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r820116 - /maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
Date Tue, 29 Sep 2009 22:45:16 GMT
Author: olamy
Date: Tue Sep 29 22:45:16 2009
New Revision: 820116

URL: http://svn.apache.org/viewvc?rev=820116&view=rev
Log:
start transformation of reportSet.

Modified:
    maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java

Modified: maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java?rev=820116&r1=820115&r2=820116&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
(original)
+++ maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java
Tue Sep 29 22:45:16 2009
@@ -170,10 +170,19 @@
             configuration = new Xpp3Dom( configuration );
             dom.addChild( configuration );
         }
+        Xpp3Dom reports = new Xpp3Dom( "reports" );
 
-        // TODO: Clarifiy conversion
+        if (! plugin.getReportSets().isEmpty())
+        {
+            dom.addChild( reports );
+        }
+        // TODO: Clarifiy conversion f reporset.configuration
         for ( ReportSet reportSet : plugin.getReportSets() )
         {
+            for (String report : reportSet.getReports())
+            {
+                addDom( reports, "report", report );
+            }
         }
 
         return dom;



Mime
View raw message