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"
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