com.atlassian.maven.plugin.clover
Class CloverSetupMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
          extended by com.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo
              extended by 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-optimized and test-src-optimized respectively. These directories are then set as the project's source and test source directories that subsequently get compiled by the compiler MOJO.


Field Summary
 
Fields inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
cloverOutputDirectory, debug, license, licenseLocation, skip, snapshot
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CloverSetupMojo()
           
 
Method Summary
 void execute()
          
protected  java.lang.String getSrcName()
           
protected  java.lang.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()
           
 
Methods inherited from class com.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo
copyExcludedFiles, findCloverArtifact, getDistributedCoverage, getEncoding, getExcludes, getIncludes, getInstrumentation, getMethodContexts, getOriginalSrcDir, getOriginalSrcTestDir, getStaleMillis, getStatementContexts, includesAllSourceRoots, isUseFullyQualifiedJavaLang, resetSrcDirsOriginal, setArtifactFactory, setArtifactResolver, swizzleCloverDependencies
 
Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getFlushInterval, getFlushPolicy, getJdk, getProject, getReactorProjects, getResourceAsFile, getResourceManager, getWaitForFlush, 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
 
Methods inherited from interface com.atlassian.maven.plugin.clover.internal.CompilerConfiguration
getFlushInterval, getFlushPolicy, getJdk
 
Methods inherited from interface com.atlassian.maven.plugin.clover.internal.CloverConfiguration
getCloverDatabase, getLog, getProject, getReactorProjects, isSingleCloverDatabase, resolveCloverDatabase
 

Constructor Detail

CloverSetupMojo

public CloverSetupMojo()
Method Detail

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 java.lang.String getSrcName()
Overrides:
getSrcName in class CloverInstrumentInternalMojo

getSrcTestName

protected java.lang.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 © 2009 Atlassian Pty Ltd. All Rights Reserved.