classes/phing/tasks/ext/PearPackageTask.php
\PearPackageTask
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.
- Extends from
- \MatchingTask
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext
- version
- $Id: PearPackageTask.php 1162 2011-06-17 21:24:01Z mrook $
Properties
Methods

createFileSet(
)
:
\FileSet| Type | Description |
|---|---|
| \FileSet |

fixDeps(
$deps
)
:
| Name | Type | Description |
|---|---|---|
| $deps |

getFileSets(
)
:
array| Type | Description |
|---|---|
| array |

populateOptions(
)
:

setDestFile(
$f
)
:
| Name | Type | Description |
|---|---|---|
| $f |

setDir(
\PhingFile $f
)
:
void| Name | Type | Description |
|---|---|---|
| $f | \PhingFile |

setName(
string $v
)
:
void| Name | Type | Description |
|---|---|---|
| $v | string |
\PearPkgMapping
Handles complex options <mapping> elements which are hashes (assoc arrays).
- package
- phing.tasks.ext
Properties
Methods
\PearPkgMappingElement
Sub-element of <mapping>.
- package
- phing.tasks.ext
Properties
Methods
\PearPkgOption
Generic option class is used for non-complex options.
- package
- phing.tasks.ext