C.62 PharDataTask

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

NameTypeDescriptionDefaultRequired
basedirStringBase directory, which will be deleted from each included file (from path). Paths with deleted basedir part are local paths in archive.n/aYes
destfileStringDestination (output) file. Will be recreated, if exists!n/aYes
compressionStringCompression type (gzip, bzip2, none) to apply to the archive.noneNo

C.62.1 Example

Sample build command:

<phardata
  destfile="./build/archive.tar"
  basedir="./"
  compression="gzip">
  <fileset dir="./classes">
    <include name="**/**" />
  </fileset>
</phardata>

C.62.2 Supported Nested Tags