tasks/ext/UntarTask.php
Extracts one or several tar archives using PEAR Archive_Tar
- Author
- Joakim Bodin
- Package
- phing.tasks.ext
- Since
- 2.2.0
- Version
- $Id: UntarTask.php 526 2009-08-11 12:11:17Z mrook $
\UntarTask
Package: phing\tasks\ext
Extracts one or several tar archives using PEAR Archive_Tar
- Parent(s)
- \ExtractBaseTask < \MatchingTask < \Task < \ProjectComponent
- Author
- Joakim Bodin
- Since
- 2.2.0
- Version
- $Id: UntarTask.php 526 2009-08-11 12:11:17Z mrook $
Properties

\PhingFile
$file= ''
inheritedInherited from:
\ExtractBaseTask::$$file
Details
- Type
- \PhingFile
- Inherited_from
- \ExtractBaseTask::$$file

$filesets= 'array()'
inheritedInherited from:
\ExtractBaseTask::$$filesets
Default value
array()Details- Type
- n/a
- Inherited_from
- \ExtractBaseTask::$$filesets

boolean
$forceExtract= 'false'
inherited
Set to true to always extract (and possibly overwrite) all files from the archive
Inherited from: \ExtractBaseTask::$$forceExtract
Default value
falseDetails- Type
- boolean
- Inherited_from
- \ExtractBaseTask::$$forceExtract

$removepath= ''
inheritedInherited from:
\ExtractBaseTask::$$removepath
Details
- Type
- n/a
- Inherited_from
- \ExtractBaseTask::$$removepath

\PhingFile
$todir= ''
inheritedInherited from:
\ExtractBaseTask::$$todir
Details
- Type
- \PhingFile
- Inherited_from
- \ExtractBaseTask::$$todir
Methods

getDirectoryScanner(
)
:
void
inherited
Inherited from:
MatchingTask::getDirectoryScanner()\ExtractBaseTask::getDirectoryScanner()

getImplicitFileSet(
)
:
void
finalinherited
Inherited from:
MatchingTask::getImplicitFileSet()\ExtractBaseTask::getImplicitFileSet()

getRuntimeConfigurableWrapper(
)
:
void
inherited
Inherited from:
Task::getRuntimeConfigurableWrapper()\ExtractBaseTask::getRuntimeConfigurableWrapper()

initTar(
\PhingFile $tarfile
)
:
\Archive_TarInit a Archive_Tar class with correct compression for the given file.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $tarfile | \PhingFile |
| Type | Description |
|---|---|
| \Archive_Tar | the tar class instance |

isDestinationUpToDate(
$compressedArchiveFile
)
:
boolean
inherited
Inherited from:
\ExtractBaseTask::isDestinationUpToDate()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $compressedArchiveFile |
| Type | Description |
|---|---|
| boolean |

setFile(
\PhingFile $file
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile | zip file to extract |

setForceExtract(
boolean $forceExtract
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $forceExtract | boolean |

setRemovePath(
$removepath
)
:
void
inherited
Inherited from:
\ExtractBaseTask::setRemovePath()
Parameters
| Name | Type | Description |
|---|---|---|
| $removepath |

setRuntimeConfigurableWrapper(
)
:
void
inherited
Inherited from:
Task::setRuntimeConfigurableWrapper()\ExtractBaseTask::setRuntimeConfigurableWrapper()

setToDir(
$todir
)
:
void
inherited
This is the base directory to look in for things to zip.
Inherited from: \ExtractBaseTask::setToDir()
Parameters
| Name | Type | Description |
|---|---|---|
| $todir |

validateAttributes(
)
:
void
inherited
Validates attributes coming in from XML
Inherited from: \ExtractBaseTask::validateAttributes()
Throws
Details
| Exception | Description |
|---|---|
| \BuildException |
- Access
- private