NAnt.Core.Tasks

NAnt SDK Documentation - v0.92 |

# NAnt.Core.Tasks Namespace

Namespace hierarchy

### Classes

Class | Description
--- | ---
AttribTask | Changes the file attributes of a file or set of files and directories.
AvailableTask | Obsolete. Checks if a resource is available at runtime.
CallTask | Calls a NAnt target in the current project.
ChooseTask | Executes an alternate set of task or type definition depending on conditions that are individually set on each group.
ChooseTask.When | Groups a set of tasks to execute when a condition is met.
CopyTask | Copies a file, a directory, or set of files to a new file or directory.
CopyTask.FileDateInfo | Holds the absolute paths and last write time of a given file.
CopyTask.FileOperation | Provides methods and properties to properly manage file operations for NAnt file system based tasks (such as CopyTask and MoveTask).
CopyTask.FileOperationMap | A collection class used to track all of the CopyTask.FileOperation objects for a given file operation task (such as the CopyTask or MoveTask).
DeleteTask | Deletes a file, fileset or directory.
DescriptionTask | An empty task that allows a build file to contain a description.
EchoTask | Writes a message to the build log or a specified file.
ExecTask | Executes a system command.
ExternalProgramBase | Provides the abstract base class for tasks that execute external applications.
FailTask | Exits the current build by throwing a BuildException, optionally printing additional information.
GetTask | Gets a particular file from a URL source.
IfNotTask | Obsolete. The opposite of the `if` task.
IfTask | Checks the conditional attributes and executes the children if true.
IncludeTask | Includes an external build file.
InElement |
LoadFileTask | Load a text file into a single property.
LoadTasksTask | Loads tasks form a given assembly or all assemblies in a given directory or FileSet.
LoopTask | Loops over a set of items.
MailTask | Sends an SMTP message.
MkDirTask | Creates a directory and any non-existent parent directory if necessary.
MoveTask | Moves a file, a directory, or set of files to a new file or directory.
NAntSchemaTask | Creates an XSD File for all available tasks.
NAntTask | Runs NAnt on a supplied build file, or a set of build files.
PropertyTask | Sets a property in the current project.
RegexTask | Sets project properties based on the evaluatuion of a regular expression.
SetEnvTask | Sets an environment variable or a whole collection of them. Use an empty LiteralValue attribute to clear a variable.
SleepTask | A task for sleeping a specified period of time, useful when a build or deployment process requires an interval between tasks.
StyleTask | Processes a document via XSLT.
SysInfoTask | Sets properties with system information.
TouchTask | Touches a file or set of files -- corresponds to the Unix touch command.
TryCatchTask | Executes a set of tasks, and optionally catches a build exception to allow recovery or rollback steps to be taken, or to define some steps to be taken regardless if the tasks succeed or fail, or both.
TryCatchTask.CatchElement |
TStampTask | Sets properties with the current date and time.
UpToDateTask | Check modification dates on groups of files.
XmlPeekTask | Extracts text from an XML file at the location specified by an XPath expression.
XmlPokeTask | Replaces text in an XML file at the location specified by an XPath expression.

### Enumerations

Enumeration | Description
--- | ---
AvailableTask.ResourceType | Defines the possible resource checks.
CopyTask.OperationType | Used to identify the type of operation a given CopyTask.FileOperation represent.
LoopTask.LoopItem |
LoopTask.LoopTrim |
MailTask.MailFormat | Temporary enum replacement of MailFormat to ease transition to newer property flags.