JAL-3541 configurables for clover report generation (JVM heap, JVM args, and -v or...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 26 Feb 2020 10:10:31 +0000 (10:10 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 26 Feb 2020 10:10:31 +0000 (10:10 +0000)
build.gradle
gradle.properties

index 7e65586..db80bf4 100644 (file)
@@ -474,19 +474,27 @@ task cloverReportHTML (type: JavaExec) {
     outputs.dir "${reportsDir}/clover"
 
     classpath configurations.cloverRuntime
-    maxHeapSize "2g"
+    maxHeapSize "${cloverReportJVMHeap}"
+    jvmArgs += "${cloverReportJVMArgs}"
     main = "com.atlassian.clover.reporters.html.HtmlReporter"
-    args "-v", "--initstring", "${buildDir}/clover/clover.db",
-    "-o", "${reportsDir}/clover"
+    args  "--initstring", "${buildDir}/clover/clover.db", "-o", "${reportsDir}/clover"
+    "${cloverReportHTMLOptions}".split(",").each {
+      args+= it.trim()
+      }
 }
 
 task cloverReportXML (type: JavaExec) {
     inputs.dir "${buildDir}/clover"
     outputs.dir "${reportsDir}/clover"
-    maxHeapSize "2g"
+    maxHeapSize "${cloverReportJVMHeap}"
+    jvmArgs "${cloverReportJVMArgs}"
     classpath configurations.cloverRuntime
     main = "com.atlassian.clover.reporters.xml.XMLReporter"
-    args "--initstring", "${buildDir}/clover/clover.db", "-o", "${reportsDir}/clover/clover.xml"
+    args  "--initstring", "${buildDir}/clover/clover.db", "-o", "${reportsDir}/clover/clover.xml"
+    
+    "${cloverReportXMLOptions}".split(",").each {
+      args+= it.trim()
+      }
 }
 task cloverReport {
   group = "Verification"
index 2dbdad3..3430f95 100644 (file)
@@ -29,6 +29,10 @@ classesDir = classes
 examplesDir = examples
 clover = false
 use_clover = false
+cloverReportJVMHeap = 2g
+cloverReportJVMArgs = -Dfile.encoding=UTF-8
+cloverReportHTMLOptions = -d
+cloverReportXMLOptions =
 cloverClassesDir = clover-classes
 cloverSourcesInstrDir = sources-instr
 packageDir = dist