Package org.scoverage
Class ScoverageWriter
java.lang.Object
org.scoverage.ScoverageWriter
Util for generating and saving coverage files.
Copied from sbt-scoverage and converted to Java to avoid dependency to Scala.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ScoverageWriter
public ScoverageWriter(org.gradle.api.logging.Logger logger)
-
-
Method Details
-
write
public void write(Set<File> sourceDirs, File reportDir, scoverage.domain.Coverage coverage, String sourceEncoding, Boolean coverageOutputCobertura, Boolean coverageOutputXML, Boolean coverageOutputHTML, Boolean coverageDebug) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException Generates all reports from given data.- Parameters:
sourceDirs- directories with project sourcesreportDir- directory for generate reportscoverage- coverage datasourceEncoding- the encoding of the source filescoverageOutputCobertura- switch for Cobertura outputcoverageOutputXML- switch for Scoverage XML outputcoverageOutputHTML- switch for Scoverage HTML outputcoverageDebug- switch for Scoverage Debug output- Throws:
ClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionInstantiationException
-