classes/phing/tasks/system/MatchingTask.php

\MatchingTask

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.

Extends from
\Task
Implements
\SelectorContainer
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)
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.system
version
$Revision: 532 $

Properties

Propertyprotected\FileSet  $fileset= ''

Details
Type
\FileSet
Propertyprotectedboolean  $useDefaultExcludes= 'true'

Default valuetrueDetails
Type
boolean

Methods

methodpublic  __construct( ) :
Create instance; set fileset to new FileSet.
methodpublic  appendSelector( \FileSelector $selector ) : void
Add a new selector into this container.
Parameters
Name Type Description
$selector \FileSelector the new selector to add
methodpublic  createAnd( ) : \AndSelector
add an "And" selector entry on the selector list
Returns
Type Description
\AndSelector
methodpublic  createContains( ) : \ContainsSelector
add a contains selector entry on the selector list
Returns
Type Description
\ContainsSelector
methodpublic  createCustom( ) : \ExtendSelector
add an extended selector entry on the selector list
Returns
Type Description
\ExtendSelector
methodpublic  createDate( ) : \DateSelector
add a selector date entry on the selector list
Returns
Type Description
\DateSelector
methodpublic  createDepend( ) : \DependSelector
add a depends selector entry on the selector list
Returns
Type Description
\DependSelector
methodpublic  createDepth( ) : \DepthSelector
add a depth selector entry on the selector list
Returns
Type Description
\DepthSelector
methodpublic  createExclude( ) : \PatternSetNameEntry
add a name entry on the exclude list
Returns
Type Description
\PatternSetNameEntry
methodpublic  createExcludesFile( ) : \PatternSetNameEntry
add a name entry on the include files list
Returns
Type Description
\PatternSetNameEntry
methodpublic  createFilename( ) : \FilenameSelector
add a selector filename entry on the selector list
Returns
Type Description
\FilenameSelector
methodpublic  createInclude( ) : \PatternSetNameEntry
add a name entry on the include list
Returns
Type Description
\PatternSetNameEntry
methodpublic  createIncludesFile( ) : \PatternSetNameEntry
add a name entry on the include files list
Returns
Type Description
\PatternSetNameEntry
methodpublic  createMajority( ) : \MajoritySelector
add a majority selector entry on the selector list
Returns
Type Description
\MajoritySelector
methodpublic  createNone( ) : \NoneSelector
add a "None" selector entry on the selector list
Returns
Type Description
\NoneSelector
methodpublic  createNot( ) : \NotSelector
add a "Not" selector entry on the selector list
Returns
Type Description
\NotSelector
methodpublic  createOr( ) : void
add an "Or" selector entry on the selector list
methodpublic  createPatternSet( ) : \PatternSet
add a set of patterns
Returns
Type Description
\PatternSet
methodpublic  createPresent( ) : \PresentSelector
add a present selector entry on the selector list
Returns
Type Description
\PresentSelector
methodpublic  createSelector( ) : \SelectSelector
add a "Select" selector entry on the selector list
Returns
Type Description
\SelectSelector
methodpublic  createSize( ) : \SizeSelector
add a selector size entry on the selector list
Returns
Type Description
\SizeSelector
methodprotected  getDirectoryScanner(  $baseDir ) : \DirectoryScanner
Returns the directory scanner needed to access the files to process.
Parameters
Name Type Description
$baseDir
Returns
Type Description
\DirectoryScanner
methodprotected  getImplicitFileSet( ) : \FileSet
finalAccessor for the implict fileset.
Returns
Type Description
\FileSet
methodpublic  getSelectors(  $p ) : array
Returns the set of selectors as an array.
Parameters
Name Type Description
$p
Returns
Type Description
array
methodpublic  hasSelectors( ) : boolean
Indicates whether there are any selectors here.
Returns
Type Description
boolean
methodpublic  selectorCount( ) : int
Gives the count of the number of selectors in this container
Returns
Type Description
int
methodpublic  selectorElements( ) : \an
Returns an enumerator for accessing the set of selectors.
Returns
Type Description
\an
methodpublic  setCaseSensitive( 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.

methodpublic  setDefaultexcludes( boolean $useDefaultExcludes ) :
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.

methodpublic  setExcludes( string $excludes ) :
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
methodpublic  setExcludesfile( \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.
methodpublic  setFollowSymlinks( 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
methodpublic  setIncludes( 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
methodpublic  setIncludesfile( \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.
methodpublic  setProject(  $project ) :
Parameters
Name Type Description
$project
Details
see
\ProjectComponent::setProject()
Documentation was generated by DocBlox 0.13.1.