com.xmlmill.connector.ant
Class Generate

java.lang.Object
  |
  +--com.xmlmill.connector.ant.Generate

public final class Generate
extends java.lang.Object

Create then run JUnitTest's based on the list of files given by the fileset attribute.

Every .java or .class file in the fileset is assumed to be a testcase. A JUnitTest is created for each of these named classes with basic setup inherited from the parent Generate.

See Also:
JUnitTest

Constructor Summary
Generate(org.apache.tools.ant.Project project)
          create a new batchtest instance
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
          Add a FileSet instance to this Generate instance.
 java.lang.String getAppend()
           
 java.util.HashMap getArguments()
          Get the attributes that are defined in the <generate> element represented by this generate instance.
 java.io.File getConfig()
           
 java.lang.String getErrorProperty()
           
 java.lang.String getFailureProperty()
           
 java.lang.String[] getFilenames()
          Get the PDF filesnames that will act as master.
 boolean getFiltertrace()
           
 boolean getFork()
           
 java.lang.String getHaltonerror()
           
 java.lang.String getHaltonwarning()
           
 java.lang.String getJaxp()
           
 java.lang.String getLogLevel()
           
 java.lang.String getName()
           
 java.io.File getOutputfolder()
           
 java.lang.String getPrintsummary()
           
 java.lang.String getSize()
           
 java.io.File getTodir()
           
 java.lang.String getValidate()
           
 java.lang.String getVerbose()
           
 java.lang.String getXsl()
           
 java.lang.String getXslt()
           
 void setAppend(boolean b)
           
 void setConfig(java.io.File f)
           
 void setErrorProperty(java.lang.String errorProperty)
           
 void setFailureProperty(java.lang.String failureProperty)
           
 void setFiltertrace(boolean value)
           
 void setFork(boolean value)
           
 void setHaltonerror(boolean b)
           
 void setHaltonwarning(boolean b)
           
 void setIf(java.lang.String propertyName)
           
 void setJaxp(java.lang.String s)
           
 void setLoglevel(java.lang.String s)
           
 void setName(java.lang.String s)
           
 void setOutputfolder(java.io.File f)
           
 void setPrintsummary(boolean b)
           
 void setSize(java.lang.String s)
           
 void setTodir(java.io.File f)
           
 void setUnless(java.lang.String propertyName)
           
 void setValidate(boolean b)
           
 void setVerbose(boolean b)
           
 void setXsl(java.lang.String s)
           
 void setXslt(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generate

public Generate(org.apache.tools.ant.Project project)
create a new batchtest instance
Parameters:
project - the project it depends on.
Method Detail

setAppend

public void setAppend(boolean b)

setXslt

public void setXslt(boolean b)

setVerbose

public void setVerbose(boolean b)

setValidate

public void setValidate(boolean b)

setName

public void setName(java.lang.String s)

setLoglevel

public void setLoglevel(java.lang.String s)

setOutputfolder

public void setOutputfolder(java.io.File f)

setXsl

public void setXsl(java.lang.String s)

setSize

public void setSize(java.lang.String s)

setJaxp

public void setJaxp(java.lang.String s)

setConfig

public void setConfig(java.io.File f)

setFiltertrace

public void setFiltertrace(boolean value)

setFork

public void setFork(boolean value)

setHaltonerror

public void setHaltonerror(boolean b)

setHaltonwarning

public void setHaltonwarning(boolean b)

setIf

public void setIf(java.lang.String propertyName)

setUnless

public void setUnless(java.lang.String propertyName)

setTodir

public void setTodir(java.io.File f)

setFailureProperty

public void setFailureProperty(java.lang.String failureProperty)

setErrorProperty

public void setErrorProperty(java.lang.String errorProperty)

setPrintsummary

public void setPrintsummary(boolean b)

getName

public java.lang.String getName()

getAppend

public java.lang.String getAppend()

getXslt

public java.lang.String getXslt()

getVerbose

public java.lang.String getVerbose()

getValidate

public java.lang.String getValidate()

getLogLevel

public java.lang.String getLogLevel()

getOutputfolder

public java.io.File getOutputfolder()

getXsl

public java.lang.String getXsl()

getSize

public java.lang.String getSize()

getJaxp

public java.lang.String getJaxp()

getConfig

public java.io.File getConfig()

getFiltertrace

public boolean getFiltertrace()

getFork

public boolean getFork()

getHaltonerror

public java.lang.String getHaltonerror()

getHaltonwarning

public java.lang.String getHaltonwarning()

getTodir

public java.io.File getTodir()

getFailureProperty

public java.lang.String getFailureProperty()

getErrorProperty

public java.lang.String getErrorProperty()

getPrintsummary

public java.lang.String getPrintsummary()

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)
                throws org.apache.tools.ant.BuildException
Add a FileSet instance to this Generate instance.

A Generate instance can only contain one Filesetinstance..

Parameters:
fs - A FileSet instance.
Throws:
org.apache.tools.ant.BuildException - if a FileSet instance is already added to this generate instance.
Since:
2.70

getFilenames

public java.lang.String[] getFilenames()
Get the PDF filesnames that will act as master.

Returns:
an array of filenames representing the PDF documents that are considered to be the master documents.
Since:
2.70

getArguments

public java.util.HashMap getArguments()
Get the attributes that are defined in the <generate> element represented by this generate instance.
Returns:
A HashMap instance containing all arguments.
Since:
2.70