org.jcoderz.phoenix.report
Class JcReportAntTask.NestedToolElement

java.lang.Object
  extended by org.jcoderz.phoenix.report.JcReportAntTask.NestedToolElement
Direct Known Subclasses:
JcReportAntTask.NestedCheckstyleElement, JcReportAntTask.NestedCoberturaElement, JcReportAntTask.NestedCpdElement, JcReportAntTask.NestedEmmaElement, JcReportAntTask.NestedFindbugsElement, JcReportAntTask.NestedPmdElement
Enclosing class:
JcReportAntTask

public abstract static class JcReportAntTask.NestedToolElement
extends Object

This is the base class for all tool elements. It provides support for the maxheap attribute and the nested classpath element.

Author:
Michael Rumpf

Field Summary
protected  org.apache.tools.ant.types.CommandlineJava mCommandline
          The global Java Commandline instance
protected  int mMaxHeap
           
protected  org.apache.tools.ant.types.Path mPath
           
protected  JcReportAntTask mTask
           
 
Constructor Summary
JcReportAntTask.NestedToolElement(JcReportAntTask task)
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Creates a classpath for the tool element.
abstract  File execute(File reportDir, File srcDir, File clsDir)
           
 void setMaxheap(String maxheap)
          Sets the maximum heap value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTask

protected JcReportAntTask mTask

mPath

protected org.apache.tools.ant.types.Path mPath

mMaxHeap

protected int mMaxHeap

mCommandline

protected final org.apache.tools.ant.types.CommandlineJava mCommandline
The global Java Commandline instance

Constructor Detail

JcReportAntTask.NestedToolElement

public JcReportAntTask.NestedToolElement(JcReportAntTask task)
Method Detail

setMaxheap

public void setMaxheap(String maxheap)
Sets the maximum heap value. If not defined in the Ant task the default value of 512MB will be used.

Parameters:
maxheap - the max heap value.

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Creates a classpath for the tool element.

Returns:
the created classpath.

execute

public abstract File execute(File reportDir,
                             File srcDir,
                             File clsDir)


Copyright 2007 The jCoderZ Project.