PharData archives generating with Phing. This task require PECL's Phar extension to be installed on your system. Phar is built-in in PHP from 5.3 version.
Table C.82: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
basedir | String | Base directory, which will be deleted from each included file (from
path). Paths with deleted basedir part are local
paths in archive. | n/a | Yes |
destfile | String | Destination (output) file. Will be recreated, if exists! | n/a | Yes |
compression | String | Compression type (gzip, bzip2, none) to apply to the archive. | none | No |
Sample build command:
<phardata destfile="./build/archive.tar" basedir="./" compression="gzip"> <fileset dir="./classes"> <include name="**/**" /> </fileset> </phardata>