<uptodate>

Check modification dates on groups of files.
If all NAnt.Core.Tasks.UpToDateTask.TargetFiles are same or newer than all NAnt.Core.Tasks.UpToDateTask.SourceFiles, the specified property is set to true, otherwise it is set to false.

Parameters

Attribute Type Description Required
property string
Property that will be set to true or false depending on the result of the date check.
True
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
unless bool
Opposite of NAnt.Core.Task.IfDefined. If false then the task will be executed; otherwise, skipped. The default is false.
False
verbose bool
Determines whether the task should report detailed build log messages. The default is false.
False

Nested elements

<sourcefiles>

The NAnt.Core.Types.FileSet that contains list of source files.

</sourcefiles>

<targetfiles>

The NAnt.Core.Types.FileSet that contains list of target files.

</targetfiles>

Examples

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

Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Tasks