|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--com.xmlmill.connector.ant.XMLMillTask
This class represents the <mill> element in an Ant build file.
By default the generation and comparing of PDF documents are performed in a separate (forked) JVM, in order not to jeopardize the build process itself in case a severe error occures during the generation or comparing process.
| Constructor Summary | |
XMLMillTask()
Create a XMLMillTask instance representing a <mill> element.
|
|
| Method Summary | |
org.apache.tools.ant.types.Path |
createClasspath()
Adds path to classpath used for tests. |
Compare |
createCompare()
Create a Compare instance.
|
Generate |
createGenerate()
Create a Generate instance.
|
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg()
Adds a JVM argument. |
void |
execute()
|
void |
init()
Adds the classesg Ant, this task and JUnit to the classpath - this should make the forked JVM work without having to specify them directly. |
void |
setAppend(boolean b)
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference reference)
|
void |
setConfig(java.lang.String s)
|
void |
setDir(java.io.File dir)
The directory to invoke the VM in. |
void |
setHaltonerror(boolean b)
|
void |
setHaltonwarning(boolean b)
|
void |
setIncludeantruntime(boolean b)
If true, include ant.jar, optional.jar and junit.jar in the forked VM. |
void |
setJaxp(java.lang.String s)
|
void |
setJvm(java.lang.String value)
The command used to invoke the Java Virtual Machine, default is 'java'. |
void |
setLoglevel(java.lang.String s)
|
void |
setMaxmemory(java.lang.String max)
Set the maximum memory to be used by the forked JVM. |
void |
setOutputfolder(java.lang.String s)
|
void |
setPrintsummary(boolean b)
|
void |
setSize(java.lang.String s)
|
void |
setTempdir(java.io.File f)
|
void |
setTodir(java.lang.String s)
|
void |
setValidate(boolean b)
|
void |
setVerbose(boolean b)
|
void |
setXslt(boolean b)
|
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLMillTask()
XMLMillTask instance representing a <mill> element.
- Since:
- 2.70
| Method Detail |
public void init()
throws org.apache.tools.ant.BuildException
init in class org.apache.tools.ant.Taskpublic void setAppend(boolean b)
public void setXslt(boolean b)
public void setVerbose(boolean b)
public void setValidate(boolean b)
public void setLoglevel(java.lang.String s)
public void setTodir(java.lang.String s)
public void setTempdir(java.io.File f)
public void setOutputfolder(java.lang.String s)
public void setSize(java.lang.String s)
public void setJaxp(java.lang.String s)
public void setConfig(java.lang.String s)
public void setHaltonerror(boolean b)
public void setHaltonwarning(boolean b)
public void setPrintsummary(boolean b)
public void setJvm(java.lang.String value)
The command is resolved by java.lang.Runtime.exec().
value - the new VM to use instead of javapublic void setDir(java.io.File dir)
Use this method in case you want to use another JVM than java.exe.
dir - File representing the directory to invoke the JVM from.public void setIncludeantruntime(boolean b)
b - include ant run time yes or nopublic void setMaxmemory(java.lang.String max)
max - the value as defined by -mx or -Xmx
in the java command line options.public void setClasspathRef(org.apache.tools.ant.types.Reference reference)
public org.apache.tools.ant.types.Path createClasspath()
public Generate createGenerate()
Generate instance.
A XMLMillTask instance can contain multiple Generateinstances..
public Compare createCompare()
Compare instance.
A XMLMillTask instance can contain multiple Compareinstances..
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
#setFork(boolean)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||