Touches a file or set of files -- corresponds to the Unix touch command.
For a list of all members of this type, see TouchTask Members.
System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.TouchTask
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
If the file specified does not exist, the task will create it.
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>
Namespace: NAnt.Core.Tasks
Assembly: NAnt.Core (in NAnt.Core.dll)
TouchTask Members | NAnt.Core.Tasks Namespace