The FileSet class provides methods and properties for accessing and managing filesets. It extends ProjectComponent and thus inherits all methods and properties (not explicitly declared). See ProjectComponent for further detail.
TODO: - merge this with patternsets: FileSet extends PatternSet !!! requires additional mods to the parsing algo [HL] .... not sure if that really makes so much sense. I think that perhaps they should use common utility class if there really is that much shared functionality
author |
Andreas Aderhold andi@binarycloud.com |
---|---|
author |
Hans Lellelid hans@xmpl.org |
version |
$Id$ |
see | |
package |
phing.types |
__construct($fileset = null)
setExpandSymbolicLinks($expandSymbolicLinks)
var | |
---|---|
setRefid(\Reference $r) : void
Subclasses may need to check whether any other attributes have been set as well or child elements have been created and thus override this method. if they do they must call parent::setRefid()
setDir($dir)
createPatternSet()
createInclude()
createIncludesFile()
createExclude()
createExcludesFile()
setIncludes($includes)
setExcludes($excludes)
setIncludesfile(mixed $incl)
throws |
---|
mixed
The file to fetch the include patterns from.
setExcludesfile(mixed $excl)
throws |
---|
mixed
The file to fetch the exclude patterns from.
setDefaultexcludes(mixed $useDefaultExcludes)
mixed
"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
setCaseSensitive($isCaseSensitive)
getDirectoryScanner(\Project $p)
setupDirectoryScanner(\DirectoryScanner $ds, \Project $p)
getRef(\Project $p)
hasSelectors() : boolean
boolean
Whether any selectors are in this container
hasPatterns() : boolean
boolean
Whether any patterns are in this container.
selectorCount() : int
int
The number of selectors in this container
getSelectors(\Project $p) : \an
selectorElements() : array
array
The array of selectors
appendSelector(\FileSelector $selector)
createSelector()
createAnd()
createOr()
createNot()
createNone()
createMajority()
createDate()
createSize()
createFilename()
createCustom()
createContains()
createContainsRegexp()
createPresent()
createDepth()
createDepend()
createType()
setDescription($desc)
getDescription()
isReference()
dieOnCircularReference($stk, \Project $p)
If one is included, throw a BuildException created by circularReference
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do anything if checked is true and set it to true on exit.
getCheckedRef($requiredClass, $dataTypeName)
tooManyAttributes()
noChildrenAllowed()
circularReference()
parsingComplete() : void
setProject(\Project $project)
getProject() : \Project
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
useDefaultExcludes : boolean
var |
---|
boolean
additionalPatterns :
dir :
isCaseSensitive :
selectors :
description :
ref :
checked : boolean
Subclasses are responsible for setting this value to false if we'd need to investigate this condition (usually because a child element has been added that is a subclass of DataType).
var |
---|
boolean
project : \Project