org.codehaus.mojo.emma
Class EmmaInstrumentMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.emma.AbstractEmmaMojo
          extended by org.codehaus.mojo.emma.EmmaInstrumentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class EmmaInstrumentMojo
extends AbstractEmmaMojo

Offline class instrumentor.

Author:
Alexandre ROMAN

Field Summary
protected  String[] filters
          Instrumentation filters.
protected  File[] instrumentationPaths
          Specifies the instrumentation paths to use.
protected  boolean merge
          Indicates whether the metadata should be merged into the destination metadataFile, if any.
protected  File metadataFile
          Location to store class coverage metadata.
protected  List pluginClasspath
          Plugin classpath.
 
Fields inherited from class org.codehaus.mojo.emma.AbstractEmmaMojo
outputDirectory, project, verbose
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
EmmaInstrumentMojo()
           
 
Method Summary
protected  void checkParameters()
          Checks the parameters before doing the work.
protected  void doExecute()
          Does the work.
 
Methods inherited from class org.codehaus.mojo.emma.AbstractEmmaMojo
execute
 
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
 

Field Detail

pluginClasspath

protected List pluginClasspath
Plugin classpath.


merge

protected boolean merge
Indicates whether the metadata should be merged into the destination metadataFile, if any.


filters

protected String[] filters
Instrumentation filters.


instrumentationPaths

protected File[] instrumentationPaths
Specifies the instrumentation paths to use.


metadataFile

protected File metadataFile
Location to store class coverage metadata.

Constructor Detail

EmmaInstrumentMojo

public EmmaInstrumentMojo()
Method Detail

checkParameters

protected void checkParameters()
                        throws org.apache.maven.plugin.MojoExecutionException,
                               org.apache.maven.plugin.MojoFailureException
Checks the parameters before doing the work.

Overrides:
checkParameters in class AbstractEmmaMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - if things go wrong.
org.apache.maven.plugin.MojoFailureException - if things go wrong.

doExecute

protected void doExecute()
                  throws org.apache.maven.plugin.MojoExecutionException,
                         org.apache.maven.plugin.MojoFailureException
Does the work.

Specified by:
doExecute in class AbstractEmmaMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - if things go wrong.
org.apache.maven.plugin.MojoFailureException - if things go wrong.


Copyright © 2007-2012 Codehaus. All Rights Reserved.