NAnt
Help
Task Reference
<ifnot> |
v0.92 |
(Deprecated)
The opposite of the if task.
| Attribute | Type | Description | Required |
|---|---|---|---|
| comparefile | string | Deprecated. The file to check against for the uptodate file. | 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 |
| propertyexists | string | Deprecated. Used to test whether a property exists. | False |
| propertytrue | string | Deprecated. Used to test whether a property is true. | False |
| targetexists | string | Deprecated. Used to test whether a target exists. | False |
| test | string | Used to test arbitrary boolean expression. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. |
False |
| uptodatefile | string | Deprecated. The file to compare if uptodate. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
uptodatefile(s) check. comparefile(s) check. Check that a property does not exist.
<ifnot propertyexists="myProp">
<echo message="myProp does not exist."/>
</if>
Check that a property value is not true.
<ifnot propertytrue="myProp">
<echo message="myProp is not true."/>
</if>
Check that a target does not exist.
<ifnot targetexists="myTarget">
<echo message="myTarget does not exist."/>
</if>