<taskdef>

Creates a custom task containing NAnt tasks.

Define a task by specifying a name, a list of string parameters (attributes), and a lits of node parameters (child elements). A custom task is created that runs each of the tasks in the <do/> parameter replacing string parameters and node parameters before execution.

String parameters are referenced in the <do/> section using the syntax __parameter name__.

Node parameters are referenced in the <do/> section using the syntax <__parameter name__/>.

Parameters

Attribute Type Description Required
name string The name for the custom task. True
failonerror bool False
if bool False
unless bool False
verbose bool False

Nested Elements:

<stringparams>

A list of StringParam (attribute) parameters.
<stringparam>

Describes a string parameter to a custom scripted task.

Parameters

AttributeTypeDescriptionRequired
namestring The parameter name. True
requiredbool Specifies if the parameter is required (default is true) False
</stringparam>

</stringparams>

<nodeparams>

A list of NodeParam (xml node) parameters.
<nodeparam>

Describes an XML-Node parameter to a custom scripted task.

Parameters

AttributeTypeDescriptionRequired
namestring The parameter name. True
requiredbool Specifies if the parameter is required (default is true) False
</nodeparam>

</nodeparams>

<do>

The tasks to script

</do>

Examples

Requirements

Assembly: broloco.NAntTasks (1.2.0.0)