tasks/system/TouchTask.php
\TouchTask
Package: phing\tasks\system
Parameters
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.
- Parent(s)
- \Task < \ProjectComponent
- Version
- $Revision: 526 $
Properties
Methods

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

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

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

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