tasks/system/UpToDateTask.php
\UpToDateTask
Package: phing\tasks\system
Sets the given property if the specified target has a timestamp greater than all of the source files.
- Implements
- \Condition
- Parent(s)
- \Task < \ProjectComponent
- Author
- Hans Lellelid
(Phing) - Author
- William Ferguson
(Ant) - Author
- Hiroaki Nakamura
(Ant) - Author
- Stefan Bodewig
(Ant) - Version
- $Revision: 1306 $
Properties
Methods

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

main(
)
:
voidSets property to true if target file(s) have a more recent timestamp than (each of) the corresponding source file(s).
Throws
| Exception | Description |
|---|---|
| \BuildException |

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

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

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