A task to create a PEAR package.xml version 2.0 file.
This class uses the PEAR_PackageFileManager2 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
or
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 |
Stuart Binge stuart.binge@complinet.com |
---|---|
author |
Hans Lellelid hans@xmpl.org |
package |
phing.tasks.ext |
version |
$Id: 89cfb9d4709a4e67b4f77d4da5b6c6249624230f $ |
__construct()
appendSelector(\FileSelector $selector) : void
createAnd() : \AndSelector
createContains() : \ContainsSelector
createCustom() : \ExtendSelector
createDate() : \DateSelector
createDepend() : \DependSelector
createDepth() : \DepthSelector
createExclude() : \PatternSetNameEntry
createExcludesFile() : \PatternSetNameEntry
createFilename() : \FilenameSelector
createInclude() : \PatternSetNameEntry
createIncludesFile() : \PatternSetNameEntry
createMajority() : \MajoritySelector
createMapping()
createNone() : \NoneSelector
createNot() : \NotSelector
createOption()
createOr() : \OrSelector
createPresent() : \PresentSelector
createSelector() : \SelectSelector
createSize() : \SizeSelector
fixDeps( $deps) :
getDescription() : string
string
The text description of the task
getDirectoryScanner(\PhingFile $baseDir) : \DirectoryScanner
getFileSets() : array
array
FileSet[]
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getSelectors(\Project $p) : array
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
hasSelectors() : boolean
boolean
Whether any selectors are in this container
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
populateOptions()
selectorCount() : integer
integer
The number of selectors in this container
selectorElements() : \an
\an
enumerator that goes through each of the selectors
setCaseSensitive(boolean $isCaseSensitive) : void
boolean
"true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
setDefaultexcludes(boolean $useDefaultExcludes)
boolean
"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
setDescription(string $desc)
string
The text describing the task
setDestFile(\PhingFile $f)
setExcludes(string $excludes)
string
the string containing the exclude patterns
setExcludesfile(\PhingFile $excludesfile) : void
setFollowSymlinks(boolean $followSymlinks) : void
boolean
whether or not symbolic links should be followed
setIncludes(string $includes) : void
string
the string containing the include patterns
setIncludesfile(\PhingFile $includesfile) : void
setLocation(\Location $location)
setName(string $v) : void
string
setOptions() : void
throws | |
---|---|
setOwningTarget(\Target $target)
setPackage(string $v) : void
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setVersion2Options()
package :
dir :
packageFile :
filesets : array
var |
FileSet[] |
---|
array
pkg : \PEAR_PackageFileManager
var |
---|
\PEAR_PackageFileManager
preparedOptions :
mappings :
roles : array<mixed,\PearPkgRole>
useDefaultExcludes : boolean
var |
---|
boolean
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project