geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r569462 - /geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
Date Fri, 24 Aug 2007 17:38:19 GMT
Author: prasad
Date: Fri Aug 24 10:38:18 2007
New Revision: 569462

URL: http://svn.apache.org/viewvc?rev=569462&view=rev
Log:
* insert empty cells to account for failed testsuites.

Modified:
    geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java

Modified: geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java?rev=569462&r1=569461&r2=569462&view=diff
==============================================================================
--- geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
(original)
+++ geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
Fri Aug 24 10:38:18 2007
@@ -508,7 +508,16 @@
         Element tr = getElementById(table, "tr", suiteName);
 
         if ( tr != null ) {
-            Element td = document.createElement("TD");
+            // creating empty cells in the cols for the previous failed builds.
+            NodeList nodeList = tr.getElementsByTagName("td");
+            Element td;
+            for ( int i=nodeList.getLength()+1; i<cols; i++ ) {
+                td = document.createElement("TD");
+                td.setAttribute("class", "cell");                
+                tr.appendChild(td);
+            }
+
+            td = document.createElement("TD");
             td.setAttribute("class", "cell");
 
             Element anchor = document.createElement("a");



Mime
View raw message