A task to create PEAR package.xml file.
This class uses the PEAR_PackageFileMaintainer class to perform the work.
This class is designed to be very flexible -- i.e. account for changes to the package.xml w/o requiring changes to this class. We've accomplished this by having generic
The
The
Here's an over-simple example of how this could be used:
Look at the build.xml in the Phing base directory (assuming you have the full distro / CVS version of Phing) to see a more complete example of how to call this script.
author |
Hans Lellelid hans@xmpl.org |
---|---|
package |
phing.tasks.ext |
version |
$Id: 7b984d9a3ed56199306d228e72ca9da54ac43d07 $ |
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
setOptions() : void
fixDeps($deps)
populateOptions()
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
getFileSets() : array
array
FileSet[]
addFileSet(\FileSet $fs) : void
setPackage(string $v) : void
see | \setName() |
---|
string
setName(string $v) : void
string
createOption()
createMapping()
__construct()
setProject(\Project $project)
createInclude() : \PatternSetNameEntry
createIncludesFile() : \PatternSetNameEntry
createExclude() : \PatternSetNameEntry
createExcludesFile() : \PatternSetNameEntry
setIncludes(string $includes) : void
string
the string containing the include patterns
setExcludes(string $excludes)
string
the string containing the exclude patterns
setDefaultexcludes(boolean $useDefaultExcludes)
boolean
"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
getDirectoryScanner(\PhingFile $baseDir) : \DirectoryScanner
setIncludesfile(\PhingFile $includesfile) : void
setExcludesfile(\PhingFile $excludesfile) : void
setCaseSensitive(boolean $isCaseSensitive) : void
boolean
"true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
setFollowSymlinks(boolean $followSymlinks) : void
boolean
whether or not symbolic links should be followed
hasSelectors() : boolean
boolean
Whether any selectors are in this container
selectorCount() : int
int
The number of selectors in this container
getSelectors(\Project $p) : array
selectorElements() : \an
\an
enumerator that goes through each of the selectors
appendSelector(\FileSelector $selector) : void
createSelector() : \SelectSelector
createAnd() : \AndSelector
createOr() : void
createNot() : \NotSelector
createNone() : \NoneSelector
createMajority() : \MajoritySelector
createDate() : \DateSelector
createSize() : \SizeSelector
createFilename() : \FilenameSelector
createCustom() : \ExtendSelector
createContains() : \ContainsSelector
createPresent() : \PresentSelector
createDepth() : \DepthSelector
createDepend() : \DependSelector
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
getProject() : \Project
package :
dir :
packageFile :
filesets : array
var |
FileSet[] |
---|
array
pkg : \PEAR_PackageFileManager
var |
---|
\PEAR_PackageFileManager
preparedOptions :
mappings :
roles : \PearPkgRole[]
var |
---|
\PearPkgRole[]
useDefaultExcludes : boolean
var |
---|
boolean
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project