tasks/ext/ExtractBaseTask.php
Base class for extracting tasks such as Unzip and Untar.
- Author
- Joakim Bodin
- Package
- phing.tasks.ext
- Since
- 2.2.0
- Version
- $Id: ExtractBaseTask.php 1397 2011-12-27 14:33:17Z mrook $
\ExtractBaseTask
Package: phing\tasks\ext
Base class for extracting tasks such as Unzip and Untar.
- Parent(s)
- \MatchingTask < \Task < \ProjectComponent
- Children
- \UnzipTask
- \UntarTask
- Author
- Joakim Bodin
- Since
- 2.2.0
- Version
- $Id: ExtractBaseTask.php 1397 2011-12-27 14:33:17Z mrook $
Properties

boolean
$forceExtract= 'false'
Set to true to always extract (and possibly overwrite) all files from the archive
Default value
falseDetails- Type
- boolean
Methods

extractArchive(
$compressedArchiveFile
)
:
void
abstract
Parameters
| Name | Type | Description |
|---|---|---|
| $compressedArchiveFile |

isDestinationUpToDate(
$compressedArchiveFile
)
:
boolean
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $compressedArchiveFile |
| Type | Description |
|---|---|
| boolean |

listArchiveContent(
$compressedArchiveFile
)
:
void
abstract
Parameters
| Name | Type | Description |
|---|---|---|
| $compressedArchiveFile |

setFile(
\PhingFile $file
)
:
voidSet the name of the zip file to extract.
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile | zip file to extract |

setForceExtract(
boolean $forceExtract
)
:
voidSets the forceExtract attribute
Parameters
| Name | Type | Description |
|---|---|---|
| $forceExtract | boolean |

setToDir(
$todir
)
:
voidThis is the base directory to look in for things to zip.
Parameters
| Name | Type | Description |
|---|---|---|
| $todir |

validateAttributes(
)
:
voidValidates attributes coming in from XML
Throws
Details
| Exception | Description |
|---|---|
| \BuildException |
- Access
- private