CompareFile Property

NAnt SDK Documentation - v0.92 |

# IfTask.CompareFile Property

NOTE: This property is now obsolete.

Use <if test="${file::up-to-date(comparefile, uptodatefile)}"> instead.

The file to check against for the uptodate file.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="comparefile", ExpandProperties:=True, ProcessXml:=True), _ Obsolete(Message:="Use <if test="${file::up-to-date(comparefile, uptodatefile)}"> instead.", IsError:=False)>
Public WriteOnly Property CompareFile As String
[C#]
[TaskAttribute(Required=False, Name="comparefile", ExpandProperties=True, ProcessXml=True)]
[Obsolete(Message="Use <if test="${file::up-to-date(comparefile, uptodatefile)}"> instead.", IsError=False)]
public string CompareFile {set;}

#### See Also

IfTask Class | NAnt.Core.Tasks Namespace