NAnt Help Function Reference target::exists | v0.90 |
Checks whether the specified target exists.
bool target::exists(name)
Name | Type | Description |
---|---|---|
name | string | The target to test. |
Execute target "clean", if it exists.
<if test="${target::exists('clean')}"> <call target="clean" /> </if>