Package org.openclover.ant.tasks
Class CloverLogTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.openclover.ant.tasks.AbstractCloverTask
org.openclover.ant.tasks.CloverLogTask
- All Implemented Interfaces:
Cloneable
Clover Ant task to print the coverage to the Ant log or Ant property.
<clover-log
initstring="/path/to/clover.db"
level="summary|class|method|statement"
filter="constructor,assert"
span="30d"
codeType="APPLICATION|TEST|ALL"
outputProperty="my.clover.log.output"
showUnitTests="true|false"
>
<fileset></fileset>
<package name="com.foo"/>
<sourcepath><sourcepath/>
<testSources><testSources/>
</clover-log>
See also ant--clover-log.html- Since:
- Clover 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnumerated Attribute to control the logging levelstatic classInner class to gather the packages to be logged. -
Field Summary
Fields inherited from class org.openclover.ant.tasks.AbstractCloverTask
config, debugFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileset(org.apache.tools.ant.types.FileSet fs) voidaddPackage(CloverLogTask.Package packageInfo) voidaddSourcepath(org.apache.tools.ant.types.Path path) Adds a path to sourcepath.voidaddTestSources(org.apache.tools.ant.types.FileSet fileset) voidPrint the coverage information to the Ant logvoidsetCodeType(String codeTypeAsString) voidset the filter which controls which items are included in the log report.voidsetLevel(CloverLogTask.Level level) Set the report detail level.voidsetOutputProperty(String outputProperty) voidsetShowUnitTests(boolean show) Sets whether to show unit test summary (total number of tests, number of tests run, number of passed / failed / error)voidsetSpan(org.openclover.core.cfg.Interval span) Methods inherited from class org.openclover.ant.tasks.AbstractCloverTask
execute, getInitString, init, resolveInitString, setDebug, setInitString, setTmpDir, validateMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
CloverLogTask
public CloverLogTask()
-
-
Method Details
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fs) -
addPackage
-
addSourcepath
public void addSourcepath(org.apache.tools.ant.types.Path path) Adds a path to sourcepath. -
addTestSources
public void addTestSources(org.apache.tools.ant.types.FileSet fileset) -
setCodeType
-
setFilter
set the filter which controls which items are included in the log report.- Parameters:
filterSpec- a comma separated set of values denoting the items to include in the report.
-
setLevel
Set the report detail level.- Parameters:
level- the report level
-
setOutputProperty
-
setShowUnitTests
public void setShowUnitTests(boolean show) Sets whether to show unit test summary (total number of tests, number of tests run, number of passed / failed / error) -
setSpan
public void setSpan(org.openclover.core.cfg.Interval span) -
cloverExecute
public void cloverExecute()Print the coverage information to the Ant log- Specified by:
cloverExecutein classAbstractCloverTask
-