<touch>

[This is preliminary documentation and subject to change.]

Touches a file or set of files -- corresponds to the Unix touch command.

If the file specified in the single-file case does not exist, the task will create it.

Parameters

Attribute Type Description Required
datetime string Specifies the new modification time of the file in the format MM/DD/YYYY HH:MM AM_or_PM. False
file file The file to touch. False
millis string Specifies the new modification time of the file(s) in milliseconds since midnight Jan 1 1970. 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
unless bool Opposite of if. 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:

<fileset>

Used to select files that should be touched.

</fileset>

Examples

Requirements

Assembly: NAnt.Core (0.85.1698.0)