org.codehaus.mojo.cobertura.tasks
Class AbstractTask

java.lang.Object
  extended by org.codehaus.mojo.cobertura.tasks.AbstractTask
Direct Known Subclasses:
CheckTask, InstrumentTask, ReportTask

public abstract class AbstractTask
extends java.lang.Object

Base Abstract Class for all of the Tasks.

Author:
Joakim Erdfelt

Field Summary
protected  CommandLineArguments cmdLineArgs
           
 
Constructor Summary
protected AbstractTask(java.lang.String taskClassname)
          Initialize AbstractTask.
 
Method Summary
 java.lang.String createClasspath()
          Using the ${project.compileClasspathElements} and the ${plugin.artifacts}, create a classpath string that is suitable to be used from a forked cobertura process.
abstract  void execute()
           
protected  int executeJava()
           
 CommandLineArguments getCmdLineArgs()
           
 org.apache.maven.plugin.logging.Log getLog()
           
 java.lang.String getMaxmem()
           
 java.util.List getPluginClasspathList()
           
 boolean isQuiet()
          Getter for quiet.
 void setCmdLineArgs(CommandLineArguments cmdLineArgs)
           
 void setLog(org.apache.maven.plugin.logging.Log log)
           
 void setMaxmem(java.lang.String maxmem)
           
 void setPluginClasspathList(java.util.List pluginClasspathList)
           
 void setQuiet(boolean quiet)
          Setter for quiet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmdLineArgs

protected CommandLineArguments cmdLineArgs
Constructor Detail

AbstractTask

protected AbstractTask(java.lang.String taskClassname)
Initialize AbstractTask.

Parameters:
taskClassname - the classname for the task.
Method Detail

setQuiet

public void setQuiet(boolean quiet)
Setter for quiet.

Parameters:
quiet - The quiet to set.

isQuiet

public boolean isQuiet()
Getter for quiet.

Returns:
Returns the quiet.

createClasspath

public java.lang.String createClasspath()
                                 throws org.apache.maven.plugin.MojoExecutionException
Using the ${project.compileClasspathElements} and the ${plugin.artifacts}, create a classpath string that is suitable to be used from a forked cobertura process.

Returns:
the classpath string
Throws:
org.apache.maven.plugin.MojoExecutionException - if the pluginArtifacts cannot be properly resolved to a full system path.

execute

public abstract void execute()
                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

executeJava

protected int executeJava()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getCmdLineArgs

public CommandLineArguments getCmdLineArgs()

getLog

public org.apache.maven.plugin.logging.Log getLog()

getMaxmem

public java.lang.String getMaxmem()

getPluginClasspathList

public java.util.List getPluginClasspathList()
Returns:
Returns the pluginClasspathList.

setCmdLineArgs

public void setCmdLineArgs(CommandLineArguments cmdLineArgs)

setLog

public void setLog(org.apache.maven.plugin.logging.Log log)

setMaxmem

public void setMaxmem(java.lang.String maxmem)

setPluginClasspathList

public void setPluginClasspathList(java.util.List pluginClasspathList)
Parameters:
pluginClasspathList - The pluginClasspathList to set.


Copyright © 2005-2010. All Rights Reserved.