D.6 PearPackageFileSet
Prev | Appendix D. Core Types | Next

## D.6 PearPackageFileSet

Specialized fileset that represents files of a PEAR package installed on the system. It is useful for collecting dependencies, for example when packing up a phar file with all dependencies.

Table D.6: Attributes for the `<pearpackagefileset>` tag

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`package` | `String` | Package name, or `$channel/$package` combination. If only a package name is given, `pear.php.net` is used as channel. | n/a | Yes
`config` | `String` | Path to PEAR configuration file. If none is given, the system default is used. | n/a | No
`descfile` | `String` | `package.xml` file path. If not given, the local PEAR installation is queried for the package. | n/a | No
`role` | `String` | PEAR file role/category. PEAR supports the following roles: php, doc, data, www, test, script, cfg. You probably want to use `php`. | `php` | No

In addition, all attributes of fileset are supported.

### D.6.1 Usage Examples

    <copy todir="lib/">
        <pearPackageFileset package="pear.php.net/Console_Table"/>
    </copy>

Copy all PHP files of package Console_Table to `lib/`

### D.6.2 Nested tags

The tags that are supported by `PearPackageFileset` are:

- `include`

- `exclude`

- `patternset`

- any of the selectors

Prev | Up | Next
D.5 Path / Classpath | Home | Appendix E. Core filters