tasks/system/MatchingTask.php

Show: inherited
Table of Contents

\MatchingTask

Package: phing\tasks\system

This is an abstract task that should be used by all those tasks that require to include or exclude files based on pattern matching.

This is very closely based on the ANT class of the same name.

Implements
\SelectorContainer
Parent(s)
\Task < \ProjectComponent
Children
\ZendGuardEncodeTask
\TarTask
\PearPackageTask
\ZipTask
\ExtractBaseTask
\PharPackageTask
Author
Hans Lellelid (Phing)  
Author
Arnout J. Kuiper (Ant)  
Author
Stefano Mazzocchi (Ant)  
Author
Sam Ruby (Ant)  
Author
Jon S. Stevens (Ant  
Author
Stefan Bodewig (Ant)  
Author
Bruce Atherton (Ant)  
Version
$Revision: 532 $  

Properties

Propertyprotected\FileSet  $fileset= ''

Details
Type
\FileSet
Propertyprotectedboolean  $useDefaultExcludes= 'true'

Default valuetrueDetails
Type
boolean

Methods

methodpublic__construct( ) : void

Create instance; set fileset to new FileSet.

methodpublicappendSelector( \FileSelector $selector ) : void

Add a new selector into this container.

Parameters
Name Type Description
$selector \FileSelector

the new selector to add

methodpubliccreateAnd( ) : \AndSelector

add an "And" selector entry on the selector list

Returns
Type Description
\AndSelector
methodpubliccreateContains( ) : \ContainsSelector

add a contains selector entry on the selector list

Returns
Type Description
\ContainsSelector
methodpubliccreateCustom( ) : \ExtendSelector

add an extended selector entry on the selector list

Returns
Type Description
\ExtendSelector
methodpubliccreateDate( ) : \DateSelector

add a selector date entry on the selector list

Returns
Type Description
\DateSelector
methodpubliccreateDepend( ) : \DependSelector

add a depends selector entry on the selector list

Returns
Type Description
\DependSelector
methodpubliccreateDepth( ) : \DepthSelector

add a depth selector entry on the selector list

Returns
Type Description
\DepthSelector
methodpubliccreateExclude( ) : \PatternSetNameEntry

add a name entry on the exclude list

Returns
Type Description
\PatternSetNameEntry
methodpubliccreateExcludesFile( ) : \PatternSetNameEntry

add a name entry on the include files list

Returns
Type Description
\PatternSetNameEntry
methodpubliccreateFilename( ) : \FilenameSelector

add a selector filename entry on the selector list

Returns
Type Description
\FilenameSelector
methodpubliccreateInclude( ) : \PatternSetNameEntry

add a name entry on the include list

Returns
Type Description
\PatternSetNameEntry
methodpubliccreateIncludesFile( ) : \PatternSetNameEntry

add a name entry on the include files list

Returns
Type Description
\PatternSetNameEntry
methodpubliccreateMajority( ) : \MajoritySelector

add a majority selector entry on the selector list

Returns
Type Description
\MajoritySelector
methodpubliccreateNone( ) : \NoneSelector

add a "None" selector entry on the selector list

Returns
Type Description
\NoneSelector
methodpubliccreateNot( ) : \NotSelector

add a "Not" selector entry on the selector list

Returns
Type Description
\NotSelector
methodpubliccreateOr( ) : void

add an "Or" selector entry on the selector list

methodpubliccreatePatternSet( ) : \PatternSet

add a set of patterns

Returns
Type Description
\PatternSet
methodpubliccreatePresent( ) : \PresentSelector

add a present selector entry on the selector list

Returns
Type Description
\PresentSelector
methodpubliccreateSelector( ) : \SelectSelector

add a "Select" selector entry on the selector list

Returns
Type Description
\SelectSelector
methodpubliccreateSize( ) : \SizeSelector

add a selector size entry on the selector list

Returns
Type Description
\SizeSelector
methodpublicgetDescription( ) : void

methodprotectedgetDirectoryScanner(  $baseDir ) : \DirectoryScanner

Returns the directory scanner needed to access the files to process.

Parameters
Name Type Description
$baseDir
Returns
Type Description
\DirectoryScanner
methodprotectedgetImplicitFileSet( ) : \FileSet
final

Accessor for the implict fileset.

Returns
Type Description
\FileSet
methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetSelectors(  $p ) : array

Returns the set of selectors as an array.

Parameters
Name Type Description
$p
Returns
Type Description
array FileSelector[] An array of selectors in this container
methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublichasSelectors( ) : boolean

Indicates whether there are any selectors here.

Returns
Type Description
boolean Whether any selectors are in this container
methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void
abstract

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicselectorCount( ) : int

Gives the count of the number of selectors in this container

Returns
Type Description
int The number of selectors in this container
methodpublicselectorElements( ) : \an

Returns an enumerator for accessing the set of selectors.

Returns
Type Description
\an enumerator that goes through each of the selectors
methodpublicsetCaseSensitive( boolean $isCaseSensitive ) : void

Sets case sensitivity of the file system

Parameters
Name Type Description
$isCaseSensitive boolean

"true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.

methodpublicsetDefaultexcludes( boolean $useDefaultExcludes ) : void

Sets whether default exclusions should be used or not.

Parameters
Name Type Description
$useDefaultExcludes boolean

"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.

methodpublicsetDescription( ) : void

methodpublicsetExcludes( string $excludes ) : void

Sets the set of exclude patterns. Patterns may be separated by a comma or a space.

Parameters
Name Type Description
$excludes string

the string containing the exclude patterns

methodpublicsetExcludesfile( \PhingFile $excludesfile ) : void

Sets the name of the file containing the includes patterns.

Parameters
Name Type Description
$excludesfile \PhingFile

A string containing the filename to fetch the include patterns from.

methodpublicsetFollowSymlinks( boolean $followSymlinks ) : void

Sets whether or not symbolic links should be followed.

Parameters
Name Type Description
$followSymlinks boolean

whether or not symbolic links should be followed

methodpublicsetIncludes( string $includes ) : void

Sets the set of include patterns. Patterns may be separated by a comma or a space.

Parameters
Name Type Description
$includes string

the string containing the include patterns

methodpublicsetIncludesfile( \PhingFile $includesfile ) : void

Sets the name of the file containing the includes patterns.

Parameters
Name Type Description
$includesfile \PhingFile

A string containing the filename to fetch the include patterns from.

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject(  $project ) : void

Parameters
Name Type Description
$project
Details
See
\ProjectComponent::setProject()  
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.