@Mojo(name="instrumentInternal",
defaultPhase=VALIDATE,
requiresDependencyResolution=TEST)
public class CloverInstrumentInternalMojo
extends AbstractCloverInstrumentMojo
Instrument source roots.
Note 1: Do not call this MOJO directly. It is meant to be called in a custom forked lifecycle by the other Clover plugin MOJOs.
Note 2: We bind this mojo to the "validate" phase so that it executes prior to any other mojos
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOVER_CORE_ARTIFACT_ID |
static String |
CLOVER_CORE_GROUP_ID |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
repositories
Remote repositories used for the project.
|
cloveredArtifactExpiryInMillis, 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 |
|---|
CloverInstrumentInternalMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<File> |
calcIncludedFilesForGroovy() |
void |
execute() |
protected org.apache.maven.artifact.Artifact |
findCloverArtifact(List<org.apache.maven.artifact.Artifact> pluginArtifacts) |
static String |
getOriginalSrcDir(String module) |
static String |
getOriginalSrcTestDir(String module) |
protected String |
getSrcName() |
protected String |
getSrcTestName() |
protected void |
redirectArtifact()
Modify main artifact to add a "clover" classifier to it so that it's not mixed with the main artifact of
a normal build.
|
protected void |
redirectOutputDirectories() |
static void |
resetSrcDirsOriginal(org.apache.maven.artifact.Artifact artifact,
CompilerConfiguration config) |
protected boolean |
shouldRedirectArtifacts() |
protected boolean |
shouldRedirectOutputDirectories() |
protected Set<org.apache.maven.artifact.Artifact> |
swizzleCloverDependencies(Set<org.apache.maven.artifact.Artifact> artifacts) |
failIfCustomClassifierIsPresent, 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 static final String CLOVER_CORE_GROUP_ID
public static final String CLOVER_CORE_ARTIFACT_ID
@Parameter(defaultValue="${project.remoteArtifactRepositories}")
protected List<org.apache.maven.artifact.repository.ArtifactRepository> repositories
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractCloverInstrumentMojoorg.apache.maven.plugin.MojoExecutionExceptionAbstractCloverMojo.execute()protected boolean shouldRedirectArtifacts()
shouldRedirectArtifacts in class AbstractCloverInstrumentMojoprotected boolean shouldRedirectOutputDirectories()
shouldRedirectOutputDirectories in class AbstractCloverInstrumentMojoprotected List<File> calcIncludedFilesForGroovy()
AbstractInstrumenter.instrument(),
redirectOutputDirectories(),
Groovy-Eclipse+compiler+plugin+for+Mavenpublic static void resetSrcDirsOriginal(org.apache.maven.artifact.Artifact artifact,
CompilerConfiguration config)
protected String getSrcTestName()
protected String getSrcName()
protected void redirectOutputDirectories()
protected void redirectArtifact()
protected Set<org.apache.maven.artifact.Artifact> swizzleCloverDependencies(Set<org.apache.maven.artifact.Artifact> artifacts)
protected org.apache.maven.artifact.Artifact findCloverArtifact(List<org.apache.maven.artifact.Artifact> pluginArtifacts)
Copyright © 2019 OpenClover.org. All rights reserved.