public abstract class AbstractBuildTask
extends org.apache.tools.ant.Task
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBuildTask.Property
A property.
|
static class |
AbstractBuildTask.Target
A target.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractBuildTask()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addBuild(org.apache.tools.ant.util.XMLFragment f)
Adds a build file fragment.
|
void |
addProperty(AbstractBuildTask.Property t)
A target to execute.
|
void |
addTarget(AbstractBuildTask.Target t)
A target to execute.
|
void |
execute()
Perform the build.
|
protected abstract java.lang.String[] |
getBuildfileArguments(java.io.File buildFile)
Must return buildfile argument(s).
|
protected abstract java.lang.String |
getExecutable()
Must return the executable.
|
protected abstract java.lang.String[] |
getPropertyArguments(java.util.List properties)
Must return property argument(s).
|
protected abstract java.lang.String[] |
getTargetArguments(java.util.List targets)
Must return target argument(s).
|
protected abstract org.w3c.dom.Element |
makeTree(org.w3c.dom.DocumentFragment f)
Turn the DoucmentFragment into a DOM tree suitable as a build
file when serialized.
|
void |
setBuildfile(java.io.File f)
Sets the name of the build file.
|
void |
setErrorProperty(java.lang.String name)
Name of property to set if a build fails.
|
void |
setFailOnError(boolean b)
Whether a failure should stop the build.
|
void |
setVm(java.lang.String value)
Set the name of the executable for the virtual machine.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public final void setBuildfile(java.io.File f)
public void addBuild(org.apache.tools.ant.util.XMLFragment f)
public void setVm(java.lang.String value)
value
- the name of the executable for the virtual machinepublic final void addTarget(AbstractBuildTask.Target t)
public final void addProperty(AbstractBuildTask.Property t)
public void setFailOnError(boolean b)
public void setErrorProperty(java.lang.String name)
protected abstract java.lang.String getExecutable()
protected abstract java.lang.String[] getBuildfileArguments(java.io.File buildFile)
buildFile
- the absolute File for the buildfile or null if
the user didn't specify a buildfile.protected abstract java.lang.String[] getTargetArguments(java.util.List targets)
protected abstract java.lang.String[] getPropertyArguments(java.util.List properties)
protected abstract org.w3c.dom.Element makeTree(org.w3c.dom.DocumentFragment f)
Must throw a BuildException if the snippet can not be turned into a build file.
public void execute()
execute
in class org.apache.tools.ant.Task