org.apache.ant.dotnet.build
Class NAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.ant.dotnet.build.AbstractBuildTask
              extended by org.apache.ant.dotnet.build.NAntTask
All Implemented Interfaces:
java.lang.Cloneable

public class NAntTask
extends AbstractBuildTask

Runs a NAnt build process.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ant.dotnet.build.AbstractBuildTask
AbstractBuildTask.Property, AbstractBuildTask.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
NAntTask()
           
 
Method Summary
protected  java.lang.String[] getBuildfileArguments(java.io.File buildFile)
          Must return buildfile argument(s).
protected  java.lang.String getExecutable()
          Must return the executable.
protected  java.lang.String[] getPropertyArguments(java.util.List properties)
          Must return property argument(s).
protected  java.lang.String[] getTargetArguments(java.util.List targets)
          Must return target argument(s).
protected  org.w3c.dom.Element makeTree(org.w3c.dom.DocumentFragment f)
          Turn the DocumentFragment into a DOM tree suitable as a build file when serialized.
 
Methods inherited from class org.apache.ant.dotnet.build.AbstractBuildTask
addBuild, addProperty, addTarget, execute, setBuildfile, setErrorProperty, setFailOnError, setVm
 
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

NAntTask

public NAntTask()
Method Detail

getExecutable

protected java.lang.String getExecutable()
Description copied from class: AbstractBuildTask
Must return the executable.

Specified by:
getExecutable in class AbstractBuildTask
Returns:
must not return null

getBuildfileArguments

protected java.lang.String[] getBuildfileArguments(java.io.File buildFile)
Description copied from class: AbstractBuildTask
Must return buildfile argument(s).

Specified by:
getBuildfileArguments in class AbstractBuildTask
Parameters:
buildFile - the absolute File for the buildfile or null if the user didn't specify a buildfile.
Returns:
must not return null

getTargetArguments

protected java.lang.String[] getTargetArguments(java.util.List targets)
Description copied from class: AbstractBuildTask
Must return target argument(s).

Specified by:
getTargetArguments in class AbstractBuildTask
Returns:
must not return null

getPropertyArguments

protected java.lang.String[] getPropertyArguments(java.util.List properties)
Description copied from class: AbstractBuildTask
Must return property argument(s).

Specified by:
getPropertyArguments in class AbstractBuildTask
Returns:
must not return null

makeTree

protected org.w3c.dom.Element makeTree(org.w3c.dom.DocumentFragment f)
Turn the DocumentFragment into a DOM tree suitable as a build file when serialized.

If we have exactly one child, return that. Otherwise assume that this is a valid build file snippet that just needs an empty project wrapped around it.

Specified by:
makeTree in class AbstractBuildTask