企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# D.8 PearPackageFileSet Specialized [fileset](apds04.html "D.4 FileSet") that represents files of a [PEAR](http://pear.php.net/) package installed on the system. It is useful for collecting dependencies, for example when packing up a [phar](apcs68.html "C.68 PharPackageTask") file with all dependencies. Table D.7:聽Attributes for the `<pearpackagefileset>` tag NameTypeDescriptionDefaultRequired`package``String` Package name, or `$channel/$package` combination. If only a package name is given, `pear.php.net` is used as channel. n/aYes`config``String` Path to PEAR configuration file. If none is given, the system default is used. n/aNo`descfile``String``package.xml` file path. If not given, the local PEAR installation is queried for the package. n/aNo`role``String` PEAR file role/category. PEAR supports the following [roles](http://pear.php.net/manual/en/guide.developers.package2.file.php#guide.developers.package2.file.roles): php, doc, data, www, test, script, cfg. You probably want to use `php`. `php`No In addition, all attributes of [fileset](apds04.html "D.4 FileSet") are supported. D.8.1 Usage Examples ``` <copy todir="lib/"> <pearPackageFileset package="pear.php.net/Console_Table"/> </copy> ``` Copy all PHP files of package [Console\_Table](http://pear.php.net/package/Console_Table) to `lib/` D.8.2 Nested tags The tags that are supported by `PearPackageFileset` are: - `include` - `exclude` - `patternset` - any of the [selectors](apg.html "Appendix G. Core selectors")