FileFunctions.

UpToDate(string, string) Method

Summary

Determines whether targetFile is more or equal up-to-date than srcFile.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FileFunctions

Syntax

[Function("up-to-date")]
public bool UpToDate(string srcFile, string targetFile)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
srcFile string The file to check against the target file.
targetFile string The file for which we want to determine the status.

Return Value

Type Description
bool true if targetFile is more or equal up-to-date than srcFile; otherwise, false.