Fileset that contains files of an installed PEAR package.
It can be used to package up PEAR package dependencies in own release files (zip, tgz, phar).
| internal |
A normal fileset is used that way in CopyTask, rSTTask:
|
|---|---|
| category |
Types |
| package |
phing.types |
| author |
Christian Weiske cweiske@cweiske.de |
| license |
LGPL v3 or later http://www.gnu.org/licenses/lgpl.html |
| link |
http://www.phing.info/ |
getDirectoryScanner(\Project $p)
loadPearPackageScanner(\Project $p) : void
setDescFile($descFile) : void
setPackage(string $package) : void
If no channel is given, "pear.php.net" is used.
stringSingle package name, or "channel/name" combination
setRole(string $role) : void
Examples are php,doc,script
stringPEAR file role
setConfig(string $config) : void
stringConfiguration file
__construct($fileset = null)
__clone()
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 |
|---|
mixedThe file to fetch the include patterns from.
setExcludesfile(mixed $excl)
| throws |
|---|
mixedThe 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)
setupDirectoryScanner(\DirectoryScanner $ds, \Project $p)
getRef(\Project $p)
hasSelectors() : boolean
booleanWhether any selectors are in this container
hasPatterns() : boolean
booleanWhether any patterns are in this container.
selectorCount() : int
intThe number of selectors in this container
getSelectors(\Project $p) : \an
selectorElements() : array
arrayThe 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)
stringThe message to be logged.
integerThe message's priority at this message should have
channel : string
| var |
|---|
string
package : string
| var |
|---|
string
packageFile : string
| var |
|---|
string
role : string
Multiple roles are not supported, and you always have to specify one.
| var |
|---|
string
prefix :
config :
If none provided, default one is used.
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