classes/phing/tasks/system/TouchTask.php
\TouchTask
Touch a file and/or fileset(s); corresponds to the Unix touch command.
If the file to touch doesn't exist, an empty one is created.
- Extends from
- \Task
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 526 $
Properties
Methods

createFileSet(
)
:
\FileSetNested creator, adds a set of files (nested fileset attribute).
| Type | Description |
|---|---|
| \FileSet |

setDatetime(
$dateTime
)
:
the new modification time of the file
in the format MM/DD/YYYY HH:MM AM or PM;
Optional, default=now
| Name | Type | Description |
|---|---|---|
| $dateTime |

setFile(
$file
)
:
Sets a single source file to touch. If the file does not exist
an empty file will be created.
| Name | Type | Description |
|---|---|---|
| $file |

setMillis(
$millis
)
:
the new modification time of the file
in milliseconds since midnight Jan 1 1970.
Optional, default=now
| Name | Type | Description |
|---|---|---|
| $millis |