NAnt SDK Documentation - v0.92

UpToDateTask Class

Check modification dates on groups of files.

For a list of all members of this type, see UpToDateTask Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Core.Tasks.UpToDateTask

[Visual Basic]
<TaskName(Name:="uptodate")>
Public Class UpToDateTask
    Inherits Task
[C#]
[TaskName(Name="uptodate")]
public class UpToDateTask : Task

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

If all TargetFiles are same or newer than all SourceFiles, the specified property is set to true, otherwise it is set to false.

Example

Check file dates. If myfile.dll is same or newer than myfile.cs, then set myfile.dll.uptodate property to either true or false.

    
<uptodate property="myfile.dll.uptodate">
    <sourcefiles>
        <include name="myfile.cs" />
    </sourcefiles>
    <targetfiles>
        <include name="myfile.dll" />
    </targetfiles>
</uptodate>
    
  

Requirements

Namespace: NAnt.Core.Tasks

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

UpToDateTask Members | NAnt.Core.Tasks Namespace