com.atlassian.maven.plugin.clover
Class CloverInstrumentInternalMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
com.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo
- All Implemented Interfaces:
- CloverConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- CloverCompilerMojo
public class CloverInstrumentInternalMojo
- extends AbstractCloverMojo
- implements CloverConfiguration
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
- Version:
- $Id: CloverInstrumentInternalMojo.java 555822 2007-07-13 00:03:28Z vsiveton $
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo |
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getFlushInterval, getFlushPolicy, getJdk, getProject, getResourceAsFile, getResourceManager, getWaitForFlush, registerCloverAntTasks, registerLicenseFile, registerLicenseFile, 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 |
CloverInstrumentInternalMojo
public CloverInstrumentInternalMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
-
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class AbstractCloverMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException- See Also:
AbstractCloverMojo.execute()
redirectOutputDirectories
protected void redirectOutputDirectories()
redirectArtifact
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.
swizzleCloverDependencies
protected java.util.Set swizzleCloverDependencies(java.util.Set artifacts)
findCloverArtifact
protected org.apache.maven.artifact.Artifact findCloverArtifact(java.util.List pluginArtifacts)
setArtifactFactory
protected void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
setArtifactResolver
protected void setArtifactResolver(org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver)
getIncludes
public java.util.Set getIncludes()
- Specified by:
getIncludes in interface CloverConfiguration
getExcludes
public java.util.Set getExcludes()
- Specified by:
getExcludes in interface CloverConfiguration
includesAllSourceRoots
public boolean includesAllSourceRoots()
- Specified by:
includesAllSourceRoots in interface CloverConfiguration
isUseFullyQualifiedJavaLang
public boolean isUseFullyQualifiedJavaLang()
- Specified by:
isUseFullyQualifiedJavaLang in interface CloverConfiguration
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding in interface CloverConfiguration
getMethodContexts
public java.util.Map getMethodContexts()
- Specified by:
getMethodContexts in interface CloverConfiguration
getStatementContexts
public java.util.Map getStatementContexts()
- Specified by:
getStatementContexts in interface CloverConfiguration
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.