com.atlassian.maven.plugin.clover
Class CloverInstrumentInternalMojo

java.lang.Object
  extended byorg.apache.maven.plugin.AbstractMojo
      extended bycom.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
          extended bycom.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo
All Implemented Interfaces:
CloverConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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 $

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CloverInstrumentInternalMojo()
           
 
Method Summary
 void execute()
          
protected  org.apache.maven.artifact.Artifact findCloverArtifact(java.util.List pluginArtifacts)
           
 java.util.Set getExcludes()
           
 java.util.Set getIncludes()
           
 boolean includesAllSourceRoots()
           
protected  void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
           
protected  void setArtifactResolver(org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver)
           
protected  java.util.Set swizzleCloverDependencies(java.util.Set artifacts)
           
 
Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getFlushInterval, getFlushPolicy, getJdk, getProject, getResourceManager, getWaitForFlush, registerCloverAntTasks, registerLicenseFile, registerLicenseFile, 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
getCloverDatabase, getFlushInterval, getFlushPolicy, getJdk, getLog, getProject
 

Constructor Detail

CloverInstrumentInternalMojo

public CloverInstrumentInternalMojo()
Method Detail

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()

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


Copyright © 2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.