NAnt
Help
Task Reference
<loadtasks> |
v0.85-nightly-2005-07-24 |
[This is preliminary documentation and subject to change.]
Loads tasks form a given assembly or all assemblies in a given directory or <fileset>.
| Attribute | Type | Description | Required |
|---|---|---|---|
| assembly | file | An assembly to load tasks from. | False |
| path | directory | A directory to scan for task assemblies. | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. |
False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Load tasks from a single assembly.
<loadtasks assembly="c:foo\NAnt.Contrib.Tasks.dll" />
Scan a single directory for task assemblies.
<loadtasks path="c:\foo" />
Use a fileset containing both a directory and an assembly.
<loadtasks>
<fileset>
<include name="C:\cvs\NAntContrib\build" />
<include name="C:\cvs\NAntContrib\build\NAnt.Contrib.Tasks.dll" />
</fileset>
</loadtasks>