org.codehaus.mojo.cobertura.tasks
Class InstrumentTask

java.lang.Object
  extended by org.codehaus.mojo.cobertura.tasks.AbstractTask
      extended by org.codehaus.mojo.cobertura.tasks.InstrumentTask

public class InstrumentTask
extends AbstractTask

The Instrument Task.

Author:
Joakim Erdfelt

Field Summary
 
Fields inherited from class org.codehaus.mojo.cobertura.tasks.AbstractTask
cmdLineArgs
 
Constructor Summary
InstrumentTask()
          Create a new InstrumentTask.
 
Method Summary
 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.
 void execute()
          Run the task.
 ConfigInstrumentation getConfig()
           
 File getDataFile()
           
 File getDestinationDir()
           
 String joinCludes(List<String> cludes)
          Construct a ,-separated string from a list of strings.
 void setConfig(ConfigInstrumentation config)
          Set the configuration
 void setDataFile(File dataFile)
          Set the data file
 void setDestinationDir(File destinationDir)
          Set the destination directory
 
Methods inherited from class org.codehaus.mojo.cobertura.tasks.AbstractTask
executeJava, getCmdLineArgs, getLog, getMaxmem, getPluginClasspathList, isQuiet, setCmdLineArgs, setLog, setMaxmem, setPluginClasspathList, setQuiet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentTask

public InstrumentTask()
Create a new InstrumentTask.

Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Run the task.

Specified by:
execute in class AbstractTask
Throws:
org.apache.maven.plugin.MojoExecutionException - for a full-out execution problem.

getConfig

public ConfigInstrumentation getConfig()
Returns:
the config.

getDataFile

public File getDataFile()
Returns:
the data file

getDestinationDir

public File getDestinationDir()
Returns:
the destination directory.

joinCludes

public String joinCludes(List<String> cludes)
Construct a ,-separated string from a list of strings.

Parameters:
cludes - the list of strings.
Returns:
the ,-separated string.

setConfig

public void setConfig(ConfigInstrumentation config)
Set the configuration

Parameters:
config - the configuration

setDataFile

public void setDataFile(File dataFile)
Set the data file

Parameters:
dataFile - the data file

setDestinationDir

public void setDestinationDir(File destinationDir)
Set the destination directory

Parameters:
destinationDir - the directory

createClasspath

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

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


Copyright © 2005–2015 Codehaus. All rights reserved.