|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
com.atlassian.maven.plugin.clover.CloverInstrumentMojo
public class CloverInstrumentMojo
Instrument all sources using Clover and forks a custom lifecycle to execute project's tests on the instrumented code so that a Clover database is created.
Note: We're forking a lifecycle because we don't want the Clover instrumentation to affect the main lifecycle
build. This will prevent instrumented sources to be put in production by error. Thus running
mvn install on a project where this instrument goal has been specified will run the
build twice: once for building the project as usual and another time for instrumenting the sources with Clover
and generating the Clover database.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo |
|---|
cloverOutputDirectory, debug, license, licenseLocation, skip, snapshot |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CloverInstrumentMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
| Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo |
|---|
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getFlushInterval, getFlushPolicy, getJdk, getProject, getReactorProjects, getResourceAsFile, getResourceManager, getWaitForFlush, isSingleCloverDatabase, registerCloverAntTasks, registerLicenseFile, registerLicenseFile, resolveCloverDatabase, setLicense, setLicenseLocation, setProject, setResourceManager, waitForFlush |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.maven.plugin.clover.internal.CloverConfiguration |
|---|
getLog |
| Constructor Detail |
|---|
public CloverInstrumentMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractCloverMojoorg.apache.maven.plugin.MojoExecutionExceptionAbstractCloverMojo.execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||