Summary
Checks whether the specified property exists.
Syntax
[Function("exists")]
public bool Exists(string name)
Examples
Execute a set of tasks if the "build.debug" property
exists.
<if test="${property::exists('build.debug')}">
<echo message="Starting debug build" />
<call target="init-debug" />
<call target="build" />
</if>
Attributes
| Type |
Description |
| FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
| Name |
Type |
Description |
| name |
string |
The property to test. |
Return Value
| Type |
Description |
| bool |
true if the specified property exists; otherwise,
false.
|