tasks/ext/ZipTask.php
\ZipFileSet
Package: phing\tasks\ext
This is a FileSet with the to specify permissions.
Permissions are currently not implemented by PEAR Archive_Tar, but hopefully they will be in the future.
- Parent(s)
- \FileSet < \AbstractFileSet < \DataType < \ProjectComponent
Properties
Methods
\ZipTask
Package: phing\tasks\ext
Creates a zip archive using PHP ZipArchive extension/
- Parent(s)
- \MatchingTask < \Task < \ProjectComponent
- Author
- Michiel Rook
- Since
- 2.1.0
- Version
- $Id: ZipTask.php 1379 2011-12-07 19:59:40Z mrook $
Properties

$includeEmpty= 'true'
Whether to include empty dirs in the archive.
Default value
trueDetails- Type
- n/a
Methods

archiveIsUpToDate(
array $files, \PhingFile $dir
)
:
boolean
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $files | array | array of filenames |
| $dir | \PhingFile |
| Type | Description |
|---|---|
| boolean |

setBasedir(
\PhingFile $baseDir
)
:
voidThis is the base directory to look in for things to zip.
Parameters
| Name | Type | Description |
|---|---|---|
| $baseDir | \PhingFile |

setDestFile(
\PhingFile $destFile
)
:
voidSet is the name/location of where to create the zip file.
Parameters
| Name | Type | Description |
|---|---|---|
| $destFile | \PhingFile | The output of the zip |

setIncludeEmptyDirs(
boolean $bool
)
:
voidSet the include empty dirs flag.
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $bool | boolean | Flag if empty dirs should be tarred too |
- Access
- public

setPrefix(
string $prefix
)
:
voidSets the file path prefix for file in the zip file.
Parameters
| Name | Type | Description |
|---|---|---|
| $prefix | string | Prefix |