org.codehaus.mojo.emma
Class AbstractEmmaMojo

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

public abstract class AbstractEmmaMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract base for EMMA mojo.

Author:
Alexandre ROMAN

Field Summary
protected  File outputDirectory
          Location to store EMMA generated resources.
protected  org.apache.maven.project.MavenProject project
          Maven project.
protected  boolean verbose
          Sets EMMA verbosity level to verbose.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractEmmaMojo()
           
 
Method Summary
protected  void checkParameters()
          Check parameter values.
protected abstract  void doExecute()
          Method called by execute().
 void execute()
          Execute this Mojo.
 
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

verbose

protected boolean verbose
Sets EMMA verbosity level to verbose.


project

protected org.apache.maven.project.MavenProject project
Maven project.


outputDirectory

protected File outputDirectory
Location to store EMMA generated resources.

Constructor Detail

AbstractEmmaMojo

public AbstractEmmaMojo()
Method Detail

checkParameters

protected void checkParameters()
                        throws org.apache.maven.plugin.MojoExecutionException,
                               org.apache.maven.plugin.MojoFailureException
Check parameter values.

Throws:
org.apache.maven.plugin.MojoFailureException - if any parameter is wrong or missing.
org.apache.maven.plugin.MojoExecutionException - is things go badly wrong.

execute

public final void execute()
                   throws org.apache.maven.plugin.MojoExecutionException,
                          org.apache.maven.plugin.MojoFailureException
Execute this Mojo.

Throws:
org.apache.maven.plugin.MojoExecutionException - if execution failed
org.apache.maven.plugin.MojoFailureException - if execution failed

doExecute

protected abstract void doExecute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
Method called by execute().

Throws:
org.apache.maven.plugin.MojoExecutionException - if execution failed
org.apache.maven.plugin.MojoFailureException - if execution failed


Copyright © 2007-2012 Codehaus. All Rights Reserved.