tasks/system/UpToDateTask.php

Show: inherited
Table of Contents

\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

Propertyprivate  $_filelists= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $_property= ''
Details
Type
n/a
Propertyprivate  $_sourceFile= ''
Details
Type
n/a
Propertyprivate  $_targetFile= ''
Details
Type
n/a
Propertyprivate  $_value= ''
Details
Type
n/a
Propertyprotected  $mapperElement= 'null'
Default valuenullDetails
Type
n/a
Propertyprivate  $sourceFileSets= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpubliccreateFileList( ) : \FileList

Supports embedded element.

Returns
Type Description
\FileList
methodpubliccreateFileset( ) : void

Nested element.

methodpubliccreateMapper( ) : void

Defines the FileNameMapper to use (nested mapper element).

methodpubliccreateSrcfiles( ) : void

Nested element.

Details
Deprecated
Deprecated since Phing 2.4.0  
methodpublicevaluate( ) : 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
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodpublicgetProperty( ) : void

Get property name

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodprivategetValue( ) : void

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

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : 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
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodprotectedscanDir(  $srcDir,  $files ) : void

Parameters
Name Type Description
$srcDir
$files
methodpublicsetDescription( ) : void

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetProperty( \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.

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetSrcfile( \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.

methodpublicsetTargetFile( \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.

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetValue( \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.