Diff of /supernightly.groovy [4dbf72] .. [b2e145]  Maximize  Restore

  Switch to side-by-side view

--- a/supernightly.groovy
+++ b/supernightly.groovy
@@ -27,6 +27,7 @@
         td() { b('Fails') }
         td() { b('Errors') }
         td() { b('PMD Violations') }
+        td() { b('OJDC Violations') }
       }
       nodes.node.@url.findAll { url ->
         print "Processing " + url + "...\n"
@@ -41,6 +42,10 @@
         def nightly = null
         try {
           nightly = new XmlParser().parseText(new URL(url + "nightly.xml").content.text)
+        } catch (Exception exception) {}
+        def ojdc = null
+        try {
+          ojdc = new XmlParser().parseText(new URL(url + "ojdcheckSummary.html").content.text)
         } catch (Exception exception) {}
         tr() {
           if (nightly != null) {
@@ -79,6 +84,11 @@
           } else {
             td()
           }
+          if (ojdc != null) {
+            td(ojdc.depthFirst().grep{ it.'@class' == 'total' }[0].text())
+          } else {
+            td()
+          }
         }
       }
     }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks