com.atlassian.maven.plugin.clover
Class CloverCleanMojo

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.CloverCleanMojo
All Implemented Interfaces:
CloverConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CloverCleanMojo
extends AbstractCloverMojo

The clover2:clean goal should be run directly from the command line, when you are developing using the clover test runner optimizer. This mojo deletes the AbstractCloverMojo.cloverOutputDirectory contents and the AbstractCloverMojo.snapshot file used for test optimization.


Field Summary
protected  boolean keepDb
          A flag to indicate to keep the clover.db but purge all coverage data and other files when clover2:clean is run.
protected  boolean skip
          A flag to indicate not to run clover2:clean for this execution.
 
Fields inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
cloverOutputDirectory, debug, license, licenseLocation, snapshot
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CloverCleanMojo()
           
 
Method Summary
 void execute()
          
 
Methods inherited from class com.atlassian.maven.plugin.clover.internal.AbstractCloverMojo
areCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getDescendentModuleProjects, getFlushInterval, getModuleProjects, getProject, getReactorProjects, getResourceAsFile, getResourceManager, getWaitForFlush, isLastProjectInReactor, isModuleOfProject, 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.CloverConfiguration
getLog
 

Field Detail

skip

protected boolean skip
A flag to indicate not to run clover2:clean for this execution. If set to true, clean will be skipped will not be run.


keepDb

protected boolean keepDb
A flag to indicate to keep the clover.db but purge all coverage data and other files when clover2:clean is run. If set to true, the clover.db file will not be removed.

Constructor Detail

CloverCleanMojo

public CloverCleanMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractCloverMojo

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractCloverMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()


Copyright © 2015 Atlassian Pty Ltd. All Rights Reserved.