With the PearPackageTask, you can create a package.xml which can be installed using the PEAR installer. Use this in conjunction with the the section called “TarTask” to completely script the building of a PEAR package.
Note
Note that this task creates a version 1
package.xml
file.
This task uses the PEAR_PackageFileManager
class. In order to be
maximally flexible, the majority of options are set generically (using
<option>
tag) and are set using
PEAR_PackageFileManager::setOptions()
. Use the
<mapping>
tag to represent complex values (which are turned
into associative arrays and also set using setOptions()
method).
Table 115. Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
name |
String |
The name of the PEAR package. | n/a | Yes |
dir |
String |
The base directory of files to add to package. | n/a | Yes |
destFile |
String |
The file to create. | package.xml in base directory | No |