org.codehaus.mojo.cobertura
Class AbstractCoberturaMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.cobertura.AbstractCoberturaMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CoberturaCheckMojo, CoberturaCleanMojo, CoberturaDatafileDumpMojo, CoberturaInstrumentMojo

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

Abstract Base for Cobertura Mojos.

Author:
Joakim Erdfelt

Field Summary
protected  List<org.apache.maven.artifact.Artifact> pluginClasspathList
          Maven Internal: List of artifacts for the plugin.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCoberturaMojo()
           
 
Method Summary
protected  File getDataFile()
          Get the data file which is or will be generated by Cobertura, never null.
protected  org.apache.maven.project.MavenProject getProject()
           
protected  void setTaskDefaults(AbstractTask task)
          Setup the Task defaults.
protected  boolean skipMojo()
          Determine if the mojo execution should get skipped.
 
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 org.apache.maven.plugin.Mojo
execute
 

Field Detail

pluginClasspathList

protected List<org.apache.maven.artifact.Artifact> pluginClasspathList
Maven Internal: List of artifacts for the plugin.

Constructor Detail

AbstractCoberturaMojo

public AbstractCoberturaMojo()
Method Detail

setTaskDefaults

protected void setTaskDefaults(AbstractTask task)
Setup the Task defaults.

Parameters:
task - the task to setup.

skipMojo

protected boolean skipMojo()

Determine if the mojo execution should get skipped.

This is the case if:

Returns:
true if the mojo execution should be skipped.

getDataFile

protected File getDataFile()
Get the data file which is or will be generated by Cobertura, never null.

Returns:
the data file

getProject

protected final org.apache.maven.project.MavenProject getProject()
Returns:
the project


Copyright © 2005-2011 Codehaus. All Rights Reserved.