|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.cobertura.tasks.AbstractTask
public abstract class AbstractTask
Base Abstract Class for all of the Tasks.
| Field Summary | |
|---|---|
protected CommandLineArguments |
cmdLineArgs
The shared command line args. |
| Constructor Summary | |
|---|---|
protected |
AbstractTask(String taskClassname)
Initialize AbstractTask. |
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandLineArguments cmdLineArgs
| Constructor Detail |
|---|
protected AbstractTask(String taskClassname)
taskClassname - the classname for the task.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||