classes/phing/tasks/system/UpToDateTask.php
\UpToDateTask
Sets the given property if the specified target has a timestamp greater than all of the source files.
Use {@link Project#createTask} to register a new Task.
- Extends from
- \Task
- Implements
- \Condition
- author
- Hans Lellelid
(Phing) - author
- William Ferguson
(Ant) - author
- Hiroaki Nakamura
(Ant) - author
- Stefan Bodewig
(Ant) - copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 911 $
Properties
Methods

evaluate(
)
:
booleanEvaluate (all) target and source file(s) to
see if the target(s) is/are up-to-date.
| Type | Description |
|---|---|
| boolean |

main(
)
:
Sets property to true if target file(s) have a more recent timestamp
than (each of) the corresponding source file(s).
- throws

setProperty(
\property $property
)
:
The property to set if the target file is more up-to-date than
(each of) the source file(s).
| Name | Type | Description |
|---|---|---|
| $property | \property | the name of the property to set if Target is up-to-date. |

setSrcfile(
\file $file
)
:
The file that must be older than the target file
if the property is to be set.
| Name | Type | Description |
|---|---|---|
| $file | \file | the file we are checking against the target file. |

setTargetFile(
\file $file
)
:
The file which must be more up-to-date than (each of) the source file(s)
if the property is to be set.
| Name | Type | Description |
|---|---|---|
| $file | \file | the file we are checking against. |