|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.ant.dotnet.build.AbstractBuildTask
public abstract class AbstractBuildTask
Base class for NAntTask and MSBuildTask.
Nested Class Summary | |
---|---|
static class |
AbstractBuildTask.Property
A property. |
static class |
AbstractBuildTask.Target
A target. |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
protected |
AbstractBuildTask()
Empty constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractBuildTask()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |