JAL-3130 write clover.xml during cloverReport phase
authorJim Procter <jprocter@issues.jalview.org>
Sun, 14 Apr 2019 20:22:45 +0000 (21:22 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 14 Apr 2019 20:22:45 +0000 (21:22 +0100)
build.gradle

index b659d8d..5f33b20 100644 (file)
@@ -147,6 +147,11 @@ task cloverReport {
                         "-o", "${reportsDir}/clover"]
         String[] args = argsList.toArray()
         com.atlassian.clover.reporters.html.HtmlReporter.runReport(args)
+        
+        // and generate ${reportsDir}/clover/clover.xml
+        args = ["--initstring", "${buildDir}/clover/clover.db",
+                        "-o", "${reportsDir}/clover/clover.xml"].toArray()
+        com.atlassian.clover.reporters.xml.XMLReporter.runReport(args)
     }
 }