public abstract class AbstractTask extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CommandLineArguments |
cmdLineArgs
The shared command line args.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTask(String taskClassname)
Initialize AbstractTask.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Run the task.
|
protected int |
executeJava()
Run a jvm to execute something.
|
CommandLineArguments |
getCmdLineArgs()
Return the command line args.
|
org.apache.maven.plugin.logging.Log |
getLog() |
String |
getMaxmem() |
List<org.apache.maven.artifact.Artifact> |
getPluginClasspathList() |
boolean |
isQuiet()
Getter for
quiet. |
void |
setCmdLineArgs(CommandLineArguments cmdLineArgs)
Set the entire command line args.
|
void |
setLog(org.apache.maven.plugin.logging.Log log)
Set the logger.
|
void |
setMaxmem(String maxmem)
Set the -Xmx value for the jvm.
|
void |
setPluginClasspathList(List<org.apache.maven.artifact.Artifact> pluginClasspathList) |
void |
setQuiet(boolean quiet)
Setter for
quiet. |
protected CommandLineArguments cmdLineArgs
protected AbstractTask(String taskClassname)
taskClassname - the classname for the task.public void setQuiet(boolean quiet)
quiet.quiet - The quiet to set.public boolean isQuiet()
quiet.public String createClasspath() throws org.apache.maven.plugin.MojoExecutionException
${project.compileClasspathElements} and the ${plugin.artifacts}, create
a classpath string that is suitable to be used from a forked cobertura process.org.apache.maven.plugin.MojoExecutionException - if the pluginArtifacts cannot be properly resolved to a full system path.public abstract void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - for a full-out execution problem.org.apache.maven.plugin.MojoFailureException - for an anticipated failure.protected int executeJava()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - for an error launching the jvm.public CommandLineArguments getCmdLineArgs()
public org.apache.maven.plugin.logging.Log getLog()
public String getMaxmem()
public List<org.apache.maven.artifact.Artifact> getPluginClasspathList()
public void setCmdLineArgs(CommandLineArguments cmdLineArgs)
cmdLineArgs - new args.public void setLog(org.apache.maven.plugin.logging.Log log)
log - the new logger.public void setMaxmem(String maxmem)
maxmem - the memory size.public void setPluginClasspathList(List<org.apache.maven.artifact.Artifact> pluginClasspathList)
pluginClasspathList - The pluginClasspathList to set.Copyright © 2005–2015 Codehaus. All rights reserved.