NAnt
Help
Task Reference
<touch> |
v0.85-nightly-2005-11-09 |
[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 does not exist, the task will create it.
| Attribute | Type | Description | Required |
|---|---|---|---|
| datetime | datetime | Specifies the new modification time of the file in the format MM/DD/YYYY HH:MM:SS. | False |
| file | file | The file to touch. | False |
| millis | long | 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 |
Touch the Main.cs file. The current time is used.
<touch file="Main.cs" />
Touch all executable files in the project base directory and its subdirectories.
<touch>
<fileset>
<include name="**/*.exe" />
<include name="**/*.dll" />
</fileset>
</touch>