tasks/ext/UntarTask.php

Show: inherited
Table of Contents

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

Propertyprotected\PhingFile  $file= ''
inherited

Inherited from: \ExtractBaseTask::$$file
Details
Type
\PhingFile
Inherited_from
\ExtractBaseTask::$$file  
Propertyprotected  $filesets= 'array()'
inheritedInherited from: \ExtractBaseTask::$$filesets
Default valuearray()Details
Type
n/a
Inherited_from
\ExtractBaseTask::$$filesets  
Propertyprotectedboolean  $forceExtract= 'false'
inherited

Set to true to always extract (and possibly overwrite) all files from the archive

Inherited from: \ExtractBaseTask::$$forceExtract
Default valuefalseDetails
Type
boolean
Inherited_from
\ExtractBaseTask::$$forceExtract  
Propertyprotected  $removepath= ''
inheritedInherited from: \ExtractBaseTask::$$removepath
Details
Type
n/a
Inherited_from
\ExtractBaseTask::$$removepath  
Propertyprotected\PhingFile  $todir= ''
inherited

Inherited from: \ExtractBaseTask::$$todir
Details
Type
\PhingFile
Inherited_from
\ExtractBaseTask::$$todir  

Methods

methodpublic__construct( ) : void
methodpublicappendSelector( ) : void
methodpubliccreateAnd( ) : void
methodpubliccreateContains( ) : void
methodpubliccreateCustom( ) : void
methodpubliccreateDate( ) : void
methodpubliccreateDepend( ) : void
methodpubliccreateDepth( ) : void
methodpubliccreateExclude( ) : void
methodpubliccreateExcludesFile( ) : void
methodpubliccreateFileSet( ) : \FileSet
inherited

Add a new fileset.

Inherited from: \ExtractBaseTask::createFileSet()
Returns
Type Description
\FileSet
methodpubliccreateFilename( ) : void
methodpubliccreateInclude( ) : void
methodpubliccreateIncludesFile( ) : void
methodpubliccreateMajority( ) : void
methodpubliccreateNone( ) : void
methodpubliccreateNot( ) : void
methodpubliccreateOr( ) : void
methodpubliccreatePatternSet( ) : void
methodpubliccreatePresent( ) : void
methodpubliccreateSelector( ) : void
methodpubliccreateSize( ) : void
methodprotectedextractArchive(  $tarfile ) : void

Parameters
Name Type Description
$tarfile
methodpublicgetDescription( ) : void
methodprotectedgetDirectoryScanner( ) : void
methodprotectedgetImplicitFileSet( ) : void
methodpublicgetLocation( ) : void
methodpublicgetOwningTarget( ) : void
methodpublicgetProject( ) : void
methodprotectedgetRegisterSlot( ) : void
methodpublicgetRuntimeConfigurableWrapper( ) : void
methodpublicgetSelectors( ) : void
methodpublicgetTaskName( ) : void
methodpublicgetTaskType( ) : void
methodpublichasSelectors( ) : void
methodpublicinit( ) : void

Ensures that PEAR lib exists.

methodprivateinitTar( \PhingFile $tarfile ) : \Archive_Tar

Init a Archive_Tar class with correct compression for the given file.

Parameters
Name Type Description
$tarfile \PhingFile
Returns
Type Description
\Archive_Tar the tar class instance
methodprotectedisDestinationUpToDate(  $compressedArchiveFile ) : boolean
inherited

Inherited from: \ExtractBaseTask::isDestinationUpToDate()
Parameters
Name Type Description
$compressedArchiveFile
Returns
Type Description
boolean
methodprotectedlistArchiveContent(  $tarfile ) : void

Parameters
Name Type Description
$tarfile
methodpubliclog( ) : void
inherited

Inherited from: Task::log()\ExtractBaseTask::log()
methodpublicmain( ) : void
inherited

do the work

Inherited from: \ExtractBaseTask::main()
Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void
methodpublicperform( ) : void
inherited

Inherited from: Task::perform()\ExtractBaseTask::perform()
methodpublicselectorCount( ) : void
methodpublicselectorElements( ) : void
methodpublicsetCaseSensitive( ) : void
methodpublicsetDefaultexcludes( ) : void
methodpublicsetDescription( ) : void
methodpublicsetExcludes( ) : void
methodpublicsetExcludesfile( ) : void
methodpublicsetFile( \PhingFile $file ) : void
inherited

Set the name of the zip file to extract.

Inherited from: \ExtractBaseTask::setFile()
Parameters
Name Type Description
$file \PhingFile

zip file to extract

methodpublicsetFollowSymlinks( ) : void
methodpublicsetForceExtract( boolean $forceExtract ) : void
inherited

Sets the forceExtract attribute

Inherited from: \ExtractBaseTask::setForceExtract()
Parameters
Name Type Description
$forceExtract boolean
methodpublicsetIncludes( ) : void
methodpublicsetIncludesfile( ) : void
methodpublicsetLocation( ) : void
methodpublicsetOwningTarget( ) : void
methodpublicsetProject( ) : void
methodpublicsetRemovePath(  $removepath ) : void
inherited

Inherited from: \ExtractBaseTask::setRemovePath()
Parameters
Name Type Description
$removepath
methodpublicsetRuntimeConfigurableWrapper( ) : void
methodpublicsetTaskName( ) : void
methodpublicsetTaskType( ) : void
methodpublicsetToDir(  $todir ) : void
inherited

This is the base directory to look in for things to zip.

Inherited from: \ExtractBaseTask::setToDir()
Parameters
Name Type Description
$todir
methodprotectedvalidateAttributes( ) : void
inherited

Validates attributes coming in from XML

Inherited from: \ExtractBaseTask::validateAttributes()
Throws
Exception Description
\BuildException
Details
Access
private  
Documentation was generated by DocBlox 0.17.1.