com.atlassian.maven.plugin.clover
Class CloverSetupMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
com.atlassian.maven.plugin.clover.internal.AbstractCloverInstrumentMojo
com.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo
com.atlassian.maven.plugin.clover.CloverSetupMojo
- All Implemented Interfaces:
- CloverConfiguration, CompilerConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class CloverSetupMojo
- extends CloverInstrumentInternalMojo
This mojo is to be used mainly for incremental instrumentation and compilation of Java source code.
NB: This does not, nor should it, run in a forked lifecycle.
This mojo should certainly *not* be called during a release build. This mojo instruments your source and test files
to ${build.directory}/clover/src-instrumented and test-src-instrumented respectively. These directories are then set as the
project's source and test source directories that subsequently get compiled by the compiler MOJO.
| Fields inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverInstrumentMojo |
cloveredArtifactExpiryInMillis, copyExcludedFiles, distributedCoverage, encoding, excludes, excludesList, flushPolicy, groverJar, includes, includesAllSourceRoots, includesList, includesTestSourceRoots, instrumentation, jdk, methodContexts, scope, setTestFailureIgnore, skipGroverJar, staleMillis, statementContexts, useCloverClassifier, useFullyQualifiedJavaLang |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverInstrumentMojo |
getDistributedCoverage, getEncoding, getExcludes, getFlushPolicy, getIncludes, getInstrumentation, getInstrumentLambda, getJdk, getMethodContexts, getStaleMillis, getStatementContexts, isCopyExcludedFiles, isIncludesAllSourceRoots, isUseFullyQualifiedJavaLang |
| Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo |
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getDescendentModuleProjects, getFlushInterval, getModuleProjects, getProject, getReactorProjects, getResourceAsFile, getResourceManager, getWaitForFlush, isLastProjectInReactor, isModuleOfProject, 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 |
CloverSetupMojo
public CloverSetupMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
CloverInstrumentInternalMojo
-
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class CloverInstrumentInternalMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException- See Also:
AbstractCloverMojo.execute()
getSrcName
protected String getSrcName()
- Overrides:
getSrcName in class CloverInstrumentInternalMojo
getSrcTestName
protected String getSrcTestName()
- Overrides:
getSrcTestName in class CloverInstrumentInternalMojo
redirectOutputDirectories
protected void redirectOutputDirectories()
- Overrides:
redirectOutputDirectories in class CloverInstrumentInternalMojo
redirectArtifact
protected void redirectArtifact()
- Description copied from class:
CloverInstrumentInternalMojo
- Modify main artifact to add a "clover" classifier to it so that it's not mixed with the main artifact of
a normal build.
- Overrides:
redirectArtifact in class CloverInstrumentInternalMojo
Copyright © 2014 Atlassian Pty Ltd. All Rights Reserved.