@Mojo(name="setup",
defaultPhase=PROCESS_SOURCES)
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.
CLOVER_CORE_ARTIFACT_ID, CLOVER_CORE_GROUP_ID, repositoriescloveredArtifactExpiryInMillis, copyExcludedFiles, distributedCoverage, encoding, excludes, excludesFile, excludesList, flushPolicy, groverJar, includes, includesAllSourceRoots, includesFile, includesList, includesTestSourceRoots, instrumentation, jdk, methodContexts, methodWithMetricsContexts, repositoryPollutionProtection, scope, setTestFailureIgnore, skipGroverJar, staleMillis, statementContexts, testSources, useCloverClassifier, useFullyQualifiedJavaLangcloverOutputDirectory, debug, license, licenseLocation, skip, snapshot| Constructor and Description |
|---|
CloverSetupMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected String |
getSrcName() |
protected String |
getSrcTestName() |
protected boolean |
shouldRedirectArtifacts() |
protected boolean |
shouldRedirectOutputDirectories() |
calcIncludedFilesForGroovy, findCloverArtifact, getOriginalSrcDir, getOriginalSrcTestDir, redirectArtifact, redirectOutputDirectories, resetSrcDirsOriginal, swizzleCloverDependenciesfailIfCustomClassifierIsPresent, failIfDeployPhaseIsPresent, failIfInstallPhaseIsPresent, getDistributedCoverage, getEncoding, getExcludes, getFlushPolicy, getIncludes, getInstrumentation, getInstrumentLambda, getJdk, getMethodContexts, getMethodWithMetricsContexts, getStaleMillis, getStatementContexts, getTestSources, isCopyExcludedFiles, isIncludesAllSourceRoots, isUseFullyQualifiedJavaLangareCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getDescendantModuleProjects, getFlushInterval, getModuleProjects, getProject, getReactorProjects, getResourceAsFile, getWaitForFlush, isLastProjectInReactor, isModuleOfProject, isSingleCloverDatabase, registerCloverAntTasks, resolveCloverDatabase, setLicense, setLicenseLocation, setProject, waitForFlushgetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFlushIntervalgetCloverDatabase, getLog, getProject, getReactorProjects, isSingleCloverDatabase, resolveCloverDatabasepublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
CloverInstrumentInternalMojoexecute in interface org.apache.maven.plugin.Mojoexecute in class CloverInstrumentInternalMojoorg.apache.maven.plugin.MojoExecutionExceptionAbstractCloverMojo.execute()protected boolean shouldRedirectArtifacts()
shouldRedirectArtifacts in class CloverInstrumentInternalMojoprotected boolean shouldRedirectOutputDirectories()
shouldRedirectOutputDirectories in class CloverInstrumentInternalMojoprotected String getSrcName()
getSrcName in class CloverInstrumentInternalMojoprotected String getSrcTestName()
getSrcTestName in class CloverInstrumentInternalMojoCopyright © 2019 OpenClover.org. All rights reserved.