# tasks/system/UpToDateTask.php

## \UpToDateTask
jump to top

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

`$_filelists= 'array()'`
Default value `array()`Details

Type
  n/a

`$_property= ''`
Details

Type
  n/a

`$_sourceFile= ''`
Details

Type
  n/a

`$_targetFile= ''`
Details

Type
  n/a

`$_value= ''`
Details

Type
  n/a

`$mapperElement= 'null'`
Default value `null` Details

Type
  n/a

`$sourceFileSets= 'array()'`
Default value `array()`Details

Type
  n/a

### Methods

`createFileList( ) : \FileList`

Supports embedded element.

Returns

Type | Description
--- | ---
\FileList |

`createFileset( ) : void`

Nested element.

`createMapper( ) : void`

Defines the FileNameMapper to use (nested mapper element).

`createSrcfiles( ) : void`

Nested element.

Details

Deprecated
  Deprecated since Phing 2.4.0

`evaluate( ) : boolean`

Evaluate (all) target and source file(s) to see if the target(s) is/are up-to-date.

Returns

Type | Description
--- | ---
boolean |

Throws

Exception | Description
--- | ---
\BuildException |

`getDescription( ) : void`

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getProperty( ) : void`

Get property name

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`getValue( ) : void`

Returns the value, or "true" if a specific value wasn't provided.

`init( ) : void`

`log( ) : void`

`main( ) : void`

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

Throws

Exception | Description
--- | ---
\BuildException |

`maybeConfigure( ) : void`

`perform( ) : void`

`scanDir( $srcDir, $files ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$srcDir |  |
$files |  |

`setDescription( ) : void`

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setProperty( \property $property ) : void`

The 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.

`setRuntimeConfigurableWrapper( ) : void`

`setSrcfile( \file $file ) : void`

The 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 ) : void`

The 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.

`setTaskName( ) : void`

`setTaskType( ) : void`

`setValue( \value $value ) : void`

The value to set the named property to if the target file is more up-to-date than (each of) the source file(s). Defaults to 'true'.

Parameters

Name | Type | Description
--- | --- | ---
$value | \value | the value to set the property to if Target is up-to-date

Documentation was generated by DocBlox 0.17.1.