tasks/ext/TarTask.php
Creates a tar archive using PEAR Archive_Tar.
- Author
- Hans Lellelid
(Phing) - Author
- Stefano Mazzocchi
(Ant) - Author
- Stefan Bodewig
(Ant) - Author
- Magesh Umasankar
- Package
- phing.tasks.ext
- Version
- $Id: c3ac5fcdf4d7cdb199d57b021e3f015c9c7fd3f8 $
\TarFileSet
This is a FileSet with the option 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
- Author
- Hans Lellelid
(Phing) - Author
- Arnout J. Kuiper
(Ant) - Author
- Stefano Mazzocchi
(Ant) - Author
- Sam Ruby
(Ant) - Author
- Jon S. Stevens
(Ant) - Author
- Stefan Bodewig
(Ant) - Author
- Magesh Umasankar (Ant)
- Version
- $Id$
Properties

$additionalPatterns= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \AbstractFileSet::$$additionalPatterns
- Inherited_from
- \FileSet::$$additionalPatterns

boolean
$checked= 'true'
Are we sure we don't hold circular references?
Inherited from: \DataType::$$checked\AbstractFileSet::$$checked\FileSet::$$checkedSubclasses are responsible for setting this value to false if we'd need to investigate this condition (usually because a child element has been added that is a subclass of DataType).
trueDetails- Type
- boolean
- Inherited_from
- \DataType::$$checked
- Inherited_from
- \AbstractFileSet::$$checked
- Inherited_from
- \FileSet::$$checked

\PatternSet
$defaultPatterns= ''
- Type
- \PatternSet
- Inherited_from
- \AbstractFileSet::$$defaultPatterns
- Inherited_from
- \FileSet::$$defaultPatterns

$description= 'null'
The descriptin the user has set.
Inherited from: \DataType::$$description\AbstractFileSet::$$description\FileSet::$$descriptionnullDetails- Type
- n/a
- Inherited_from
- \DataType::$$description
- Inherited_from
- \AbstractFileSet::$$description
- Inherited_from
- \FileSet::$$description

boolean
$expandSymbolicLinks= 'false'
Whether to expand/dereference symbolic links, default is false
Inherited from: \AbstractFileSet::$$expandSymbolicLinks\FileSet::$$expandSymbolicLinksfalseDetails- Type
- boolean
- Inherited_from
- \AbstractFileSet::$$expandSymbolicLinks
- Inherited_from
- \FileSet::$$expandSymbolicLinks

$isCaseSensitive= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \AbstractFileSet::$$isCaseSensitive
- Inherited_from
- \FileSet::$$isCaseSensitive

\Project
$project= 'null'
Holds a reference to the project that a project component (a task, a target, etc.) belongs to
A reference to the current project instanceInherited from: \ProjectComponent::$$project\DataType::$$project\AbstractFileSet::$$project\FileSet::$$projectnullDetails- Type
- \Project
- Inherited_from
- \ProjectComponent::$$project
- Inherited_from
- \DataType::$$project
- Inherited_from
- \AbstractFileSet::$$project
- Inherited_from
- \FileSet::$$project

$ref= 'null'
Value to the refid attribute. Type of Reference
Inherited from: \DataType::$$ref\AbstractFileSet::$$ref\FileSet::$$refnullDetails- Type
- n/a
- Inherited_from
- \DataType::$$ref
- Inherited_from
- \AbstractFileSet::$$ref
- Inherited_from
- \FileSet::$$ref

$selectors= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \AbstractFileSet::$$selectors
- Inherited_from
- \FileSet::$$selectors

boolean
$useDefaultExcludes= 'true'
trueDetails- Type
- boolean
- Inherited_from
- \AbstractFileSet::$$useDefaultExcludes
- Inherited_from
- \FileSet::$$useDefaultExcludes
Methods

__clone(
)
:
voidReturn a FileSet that has the same basedir and same patternsets as this one.
Inherited from: \FileSet::__clone()
__construct(
$fileset
=
null
)
:
void| Name | Type | Description |
|---|---|---|
| $fileset |

appendSelector(
\selector $selector
)
:
voidAdd a new selector into this container.
Inherited from: \AbstractFileSet::appendSelector()\FileSet::appendSelector()| Name | Type | Description |
|---|---|---|
| $selector | \selector | the new selector to add |

circularReference(
)
:
voidCreates an exception that indicates the user has generated a loop of data types referencing each other.
Inherited from: \DataType::circularReference()\AbstractFileSet::circularReference()\FileSet::circularReference()
createAnd(
)
:
voidadd an "And" selector entry on the selector list
Inherited from: \AbstractFileSet::createAnd()\FileSet::createAnd()
createContains(
)
:
voidadd a contains selector entry on the selector list
Inherited from: \AbstractFileSet::createContains()\FileSet::createContains()
createContainsRegexp(
)
:
voidadd a contains selector entry on the selector list
Inherited from: \AbstractFileSet::createContainsRegexp()\FileSet::createContainsRegexp()
createCustom(
)
:
voidadd an extended selector entry on the selector list
Inherited from: \AbstractFileSet::createCustom()\FileSet::createCustom()
createDate(
)
:
voidadd a selector date entry on the selector list
Inherited from: \AbstractFileSet::createDate()\FileSet::createDate()
createDepend(
)
:
voidadd a depends selector entry on the selector list
Inherited from: \AbstractFileSet::createDepend()\FileSet::createDepend()
createDepth(
)
:
voidadd a depth selector entry on the selector list
Inherited from: \AbstractFileSet::createDepth()\FileSet::createDepth()
createExclude(
)
:
voidadd a name entry on the exclude list
Inherited from: \AbstractFileSet::createExclude()\FileSet::createExclude()
createExcludesFile(
)
:
voidadd a name entry on the include files list
Inherited from: \AbstractFileSet::createExcludesFile()\FileSet::createExcludesFile()
createFilename(
)
:
voidadd a selector filename entry on the selector list
Inherited from: \AbstractFileSet::createFilename()\FileSet::createFilename()
createInclude(
)
:
voidadd a name entry on the include list
Inherited from: \AbstractFileSet::createInclude()\FileSet::createInclude()
createIncludesFile(
)
:
voidadd a name entry on the include files list
Inherited from: \AbstractFileSet::createIncludesFile()\FileSet::createIncludesFile()
createMajority(
)
:
voidadd a majority selector entry on the selector list
Inherited from: \AbstractFileSet::createMajority()\FileSet::createMajority()
createNone(
)
:
voidadd a "None" selector entry on the selector list
Inherited from: \AbstractFileSet::createNone()\FileSet::createNone()
createNot(
)
:
voidadd a "Not" selector entry on the selector list
Inherited from: \AbstractFileSet::createNot()\FileSet::createNot()
createOr(
)
:
voidadd an "Or" selector entry on the selector list
Inherited from: \AbstractFileSet::createOr()\FileSet::createOr()
createPresent(
)
:
voidadd a present selector entry on the selector list
Inherited from: \AbstractFileSet::createPresent()\FileSet::createPresent()
createSelector(
)
:
voidadd a "Select" selector entry on the selector list
Inherited from: \AbstractFileSet::createSelector()\FileSet::createSelector()
createSize(
)
:
voidadd a selector size entry on the selector list
Inherited from: \AbstractFileSet::createSize()\FileSet::createSize()
createType(
)
:
voidadd a type selector entry on the selector list
Inherited from: \AbstractFileSet::createType()\FileSet::createType()
dieOnCircularReference(
$stk, $p
)
:
voidCheck to see whether any DataType we hold references to is included in the Stack (which holds all DataType instances that directly or indirectly reference this instance, including this instance itself).
Inherited from: \DataType::dieOnCircularReference()\AbstractFileSet::dieOnCircularReference()\FileSet::dieOnCircularReference()If one is included, throw a BuildException created by circularReference
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do anything if checked is true and set it to true on exit.
| Name | Type | Description |
|---|---|---|
| $stk | ||
| $p |

getCheckedRef(
$requiredClass, $dataTypeName
)
:
voidPerforms the check for circular references and returns the referenced object.
Inherited from: \DataType::getCheckedRef()\AbstractFileSet::getCheckedRef()\FileSet::getCheckedRef()| Name | Type | Description |
|---|---|---|
| $requiredClass | ||
| $dataTypeName |

getDescription(
)
:
voidReturn the description for the current data type.
Inherited from: \DataType::getDescription()\AbstractFileSet::getDescription()\FileSet::getDescription()
getDirectoryScanner(
$p
)
:
voidreturns a reference to the dirscanner object belonging to this fileset
Inherited from: \AbstractFileSet::getDirectoryScanner()\FileSet::getDirectoryScanner()| Name | Type | Description |
|---|---|---|
| $p |

getFiles(
$p, $includeEmpty
=
true
)
:
voidGet a list of files and directories specified in the fileset.
@return array a list of file and directory names, relative to the baseDir for the project.
| Name | Type | Description |
|---|---|---|
| $p | ||
| $includeEmpty |

getProject(
)
:
\ProjectReturns a reference to current project
Inherited from: \ProjectComponent::getProject()\DataType::getProject()\AbstractFileSet::getProject()\FileSet::getProject()| Type | Description |
|---|---|
| \Project | Reference to current porject object |

getRef(
$p
)
:
voidPerforms the check for circular references and returns the referenced FileSet.
Inherited from: \AbstractFileSet::getRef()\FileSet::getRef()| Name | Type | Description |
|---|---|---|
| $p |

getSelectors(
$p
)
:
\anReturns the set of selectors as an array.
Inherited from: \AbstractFileSet::getSelectors()\FileSet::getSelectors()| Name | Type | Description |
|---|---|---|
| $p |
| Type | Description |
|---|---|
| \an | array of selectors in this container |

hasPatterns(
)
:
booleanIndicates whether there are any patterns here.
Inherited from: \AbstractFileSet::hasPatterns()\FileSet::hasPatterns()| Type | Description |
|---|---|
| boolean | Whether any patterns are in this container. |

hasSelectors(
)
:
booleanIndicates whether there are any selectors here.
Inherited from: \AbstractFileSet::hasSelectors()\FileSet::hasSelectors()| Type | Description |
|---|---|
| boolean | Whether any selectors are in this container |

isReference(
)
:
voidHas the refid attribute of this element been set?
Inherited from: \DataType::isReference()\AbstractFileSet::isReference()\FileSet::isReference()
log(
string $msg, integer $level
=
Project::MSG_INFO
)
:
voidLogs a message with the given priority.
Inherited from: \ProjectComponent::log()\DataType::log()\AbstractFileSet::log()\FileSet::log()| Name | Type | Description |
|---|---|---|
| $msg | string | The message to be logged. |
| $level | integer | The message's priority at this message should have |

noChildrenAllowed(
)
:
voidCreates an exception that indicates that this XML element must not have child elements if the refid attribute is set.
Inherited from: \DataType::noChildrenAllowed()\AbstractFileSet::noChildrenAllowed()\FileSet::noChildrenAllowed()
parsingComplete(
)
:
voidTemplate method being called when the data type has been parsed completely.
Inherited from: \DataType::parsingComplete()\AbstractFileSet::parsingComplete()\FileSet::parsingComplete()
selectorCount(
)
:
intGives the count of the number of selectors in this container
Inherited from: \AbstractFileSet::selectorCount()\FileSet::selectorCount()| Type | Description |
|---|---|
| int | The number of selectors in this container |

selectorElements(
)
:
arrayReturns an array for accessing the set of selectors.
Inherited from: \AbstractFileSet::selectorElements()\FileSet::selectorElements()| Type | Description |
|---|---|
| array | The array of selectors |

setCaseSensitive(
$isCaseSensitive
)
:
voidSets case sensitivity of the file system
Inherited from: \AbstractFileSet::setCaseSensitive()\FileSet::setCaseSensitive()| Name | Type | Description |
|---|---|---|
| $isCaseSensitive |

setDefaultexcludes(
\$useDefaultExcludes $useDefaultExcludes
)
:
voidSets whether default exclusions should be used or not.
Inherited from: \AbstractFileSet::setDefaultexcludes()\FileSet::setDefaultexcludes()| Name | Type | Description |
|---|---|---|
| $useDefaultExcludes | \$useDefaultExcludes | "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used. |

setDescription(
$desc
)
:
voidSets a description of the current data type. It will be useful in commenting what we are doing.
Inherited from: \DataType::setDescription()\AbstractFileSet::setDescription()\FileSet::setDescription()| Name | Type | Description |
|---|---|---|
| $desc |

setExcludes(
$excludes
)
:
voidSets the set of exclude patterns. Patterns may be separated by a comma or a space.
Inherited from: \AbstractFileSet::setExcludes()\FileSet::setExcludes()| Name | Type | Description |
|---|---|---|
| $excludes |

setExcludesfile(
\$excl $excl
)
:
voidSets the name of the file containing the includes patterns.
Inherited from: \AbstractFileSet::setExcludesfile()\FileSet::setExcludesfile()| Name | Type | Description |
|---|---|---|
| $excl | \$excl | The file to fetch the exclude patterns from. |
| Exception | Description |
|---|---|
| \BE |

setExpandSymbolicLinks(
$expandSymbolicLinks
)
:
voidSets whether to expand/dereference symbolic links, default is false
Inherited from: \AbstractFileSet::setExpandSymbolicLinks()\FileSet::setExpandSymbolicLinks()| Name | Type | Description |
|---|---|---|
| $expandSymbolicLinks |
- boolean

setFullpath(
$fullpath
)
:
voidIf the fullpath attribute is set, the file in the fileset is written with that path in the archive. The prefix attribute, if specified, is ignored. It is an error to have more than one file specified in such a fileset.
| Name | Type | Description |
|---|---|---|
| $fullpath |

setGroup(
$groupName
)
:
voidThe groupname for the tar entry; optional, default="" This is not the same as the GID, which is not currently set by the task.
| Name | Type | Description |
|---|---|---|
| $groupName |

setIncludes(
$includes
)
:
voidSets the set of include patterns. Patterns may be separated by a comma or a space.
Inherited from: \AbstractFileSet::setIncludes()\FileSet::setIncludes()| Name | Type | Description |
|---|---|---|
| $includes |

setIncludesfile(
\$incl $incl
)
:
voidSets the name of the file containing the includes patterns.
Inherited from: \AbstractFileSet::setIncludesfile()\FileSet::setIncludesfile()| Name | Type | Description |
|---|---|---|
| $incl | \$incl | The file to fetch the include patterns from. |
| Exception | Description |
|---|---|
| \BE |

setMode(
string $octalString
)
:
voidA 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644
| Name | Type | Description |
|---|---|---|
| $octalString | string |

setPrefix(
$prefix
)
:
voidIf the prefix attribute is set, all files in the fileset are prefixed with that path in the archive.
optional.
| Name | Type | Description |
|---|---|---|
| $prefix |

setPreserveLeadingSlashes(
$b
)
:
voidFlag to indicates whether leading `/'s should be preserved in the file names.
Optional, default is
false
.
| Name | Type | Description |
|---|---|---|
| $b |

setProject(
\Project $project
)
:
voidReferences the project to the current component.
Inherited from: \ProjectComponent::setProject()\DataType::setProject()\AbstractFileSet::setProject()\FileSet::setProject()| Name | Type | Description |
|---|---|---|
| $project | \Project | The reference to the current project |

setRefid(
\Reference $r
)
:
voidMakes this instance in effect a reference to another PatternSet instance.
Inherited from: \AbstractFileSet::setRefid()\FileSet::setRefid()You must not set another attribute or nest elements inside this element if you make it a reference.
| Name | Type | Description |
|---|---|---|
| $r | \Reference |

setUserName(
$userName
)
:
voidThe username for the tar entry This is not the same as the UID, which is not currently set by the task.
| Name | Type | Description |
|---|---|---|
| $userName |

setupDirectoryScanner(
$ds, $p
)
:
voidfeed dirscanner with infos defined by this fileset
Inherited from: \AbstractFileSet::setupDirectoryScanner()\FileSet::setupDirectoryScanner()| Name | Type | Description |
|---|---|---|
| $ds | ||
| $p |

tooManyAttributes(
)
:
voidCreates an exception that indicates that refid has to be the only attribute if it is set.
Inherited from: \DataType::tooManyAttributes()\AbstractFileSet::tooManyAttributes()\FileSet::tooManyAttributes()\TarTask
Creates a tar archive using PEAR Archive_Tar.
This is very closely based on the ANT class of the same name.
- Parent(s)
- \MatchingTask < \SelectorContainer < \ProjectComponent
- Author
- Hans Lellelid
(Phing) - Author
- Stefano Mazzocchi
(Ant) - Author
- Stefan Bodewig
(Ant) - Author
- Magesh Umasankar
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Version
- $Id: c3ac5fcdf4d7cdb199d57b021e3f015c9c7fd3f8 $
Constants
Properties

$compression= 'null'
Compression mode. Available options "gzip", "bzip2", "none" (null).
nullDetails- Type
- n/a

string
$description= ''
- Type
- string
- Inherited_from
- \Task::$$description
- Inherited_from
- \MatchingTask::$$description

\FileSet
$fileset= ''
- Type
- \FileSet
- Inherited_from
- \MatchingTask::$$fileset

\Location
$location= ''
- Type
- \Location
- Inherited_from
- \Task::$$location
- Inherited_from
- \MatchingTask::$$location

$longWarningGiven= 'false'
Indicates whether the user has been warned about long files already.
falseDetails- Type
- n/a

\Project
$project= 'null'
Holds a reference to the project that a project component (a task, a target, etc.) belongs to
A reference to the current project instanceInherited from: \ProjectComponent::$$project\Task::$$project\MatchingTask::$$projectnullDetails- Type
- \Project
- Inherited_from
- \ProjectComponent::$$project
- Inherited_from
- \Task::$$project
- Inherited_from
- \MatchingTask::$$project

\Target
$target= ''
- Type
- \Target
- Inherited_from
- \Task::$$target
- Inherited_from
- \MatchingTask::$$target

string
$taskName= ''
- Type
- string
- Inherited_from
- \Task::$$taskName
- Inherited_from
- \MatchingTask::$$taskName

string
$taskType= ''
- Type
- string
- Inherited_from
- \Task::$$taskType
- Inherited_from
- \MatchingTask::$$taskType

boolean
$useDefaultExcludes= 'true'
trueDetails- Type
- boolean
- Inherited_from
- \MatchingTask::$$useDefaultExcludes

\RuntimeConfigurable
$wrapper= ''
- Type
- \RuntimeConfigurable
- Inherited_from
- \Task::$$wrapper
- Inherited_from
- \MatchingTask::$$wrapper
Methods

appendSelector(
\FileSelector $selector
)
:
void
| Name | Type | Description |
|---|---|---|
| $selector | \FileSelector | the new selector to add |

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

createAnd(
)
:
\AndSelectoradd an "And" selector entry on the selector list
Inherited from: \MatchingTask::createAnd()| Type | Description |
|---|---|
| \AndSelector |

createContains(
)
:
\ContainsSelectoradd a contains selector entry on the selector list
Inherited from: \MatchingTask::createContains()| Type | Description |
|---|---|
| \ContainsSelector |

createCustom(
)
:
\ExtendSelectoradd an extended selector entry on the selector list
Inherited from: \MatchingTask::createCustom()| Type | Description |
|---|---|
| \ExtendSelector |

createDepend(
)
:
\DependSelectoradd a depends selector entry on the selector list
Inherited from: \MatchingTask::createDepend()| Type | Description |
|---|---|
| \DependSelector |

createDepth(
)
:
\DepthSelectoradd a depth selector entry on the selector list
Inherited from: \MatchingTask::createDepth()| Type | Description |
|---|---|
| \DepthSelector |

createExcludesFile(
)
:
\PatternSetNameEntryadd a name entry on the include files list
Inherited from: \MatchingTask::createExcludesFile()| Type | Description |
|---|---|
| \PatternSetNameEntry |

createFileSet(
)
:
\FileSetAdd a new fileset. Alias to createTarFileSet() for backwards compatibility.
| Type | Description |
|---|---|
| \FileSet |
- See
- \createTarFileSet()

createFilename(
)
:
\FilenameSelectoradd a selector filename entry on the selector list
Inherited from: \MatchingTask::createFilename()| Type | Description |
|---|---|
| \FilenameSelector |

createIncludesFile(
)
:
\PatternSetNameEntryadd a name entry on the include files list
Inherited from: \MatchingTask::createIncludesFile()| Type | Description |
|---|---|
| \PatternSetNameEntry |

createMajority(
)
:
\MajoritySelectoradd a majority selector entry on the selector list
Inherited from: \MatchingTask::createMajority()| Type | Description |
|---|---|
| \MajoritySelector |

createNone(
)
:
\NoneSelectoradd a "None" selector entry on the selector list
Inherited from: \MatchingTask::createNone()| Type | Description |
|---|---|
| \NoneSelector |

createPresent(
)
:
\PresentSelectoradd a present selector entry on the selector list
Inherited from: \MatchingTask::createPresent()| Type | Description |
|---|---|
| \PresentSelector |

createSelector(
)
:
\SelectSelectoradd a "Select" selector entry on the selector list
Inherited from: \MatchingTask::createSelector()| Type | Description |
|---|---|
| \SelectSelector |

getDescription(
)
:
stringReturns the textual description of the task
Inherited from: \Task::getDescription()\MatchingTask::getDescription()| Type | Description |
|---|---|
| string | The text description of the task |

getDirectoryScanner(
$baseDir
)
:
\DirectoryScannerReturns the directory scanner needed to access the files to process.
Inherited from: \MatchingTask::getDirectoryScanner()| Name | Type | Description |
|---|---|---|
| $baseDir |
| Type | Description |
|---|---|
| \DirectoryScanner |

getLocation(
)
:
\LocationReturns the location within the buildfile this task occurs. Used by {@link BuildException} to give detailed error messages.
Inherited from: \Task::getLocation()\MatchingTask::getLocation()| Type | Description |
|---|---|
| \Location | The location object describing the position of this task within the buildfile. |

getOwningTarget(
)
:
\TargetReturns the owning target of this task.
Inherited from: \Task::getOwningTarget()\MatchingTask::getOwningTarget()| Type | Description |
|---|---|
| \Target | The target object that owns this task |

getProject(
)
:
\ProjectReturns a reference to current project
Inherited from: \ProjectComponent::getProject()\Task::getProject()\MatchingTask::getProject()| Type | Description |
|---|---|
| \Project | Reference to current porject object |

getRuntimeConfigurableWrapper(
)
:
\RuntimeConfigurableReturns the wrapper object for runtime configuration
Inherited from: \Task::getRuntimeConfigurableWrapper()\MatchingTask::getRuntimeConfigurableWrapper()| Type | Description |
|---|---|
| \RuntimeConfigurable | The wrapper object used by this task |

getSelectors(
$p
)
:
array
| Name | Type | Description |
|---|---|---|
| $p |
| Type | Description |
|---|---|
| array | FileSelector[] An array of selectors in this container |

getTaskName(
)
:
stringReturns the name of task, used only for log messages
Inherited from: \Task::getTaskName()\MatchingTask::getTaskName()| Type | Description |
|---|---|
| string | Name of this task |

getTaskType(
)
:
stringReturns the name of the task under which it was invoked, usually the XML tagname
Inherited from: \Task::getTaskType()\MatchingTask::getTaskType()| Type | Description |
|---|---|
| string | The type of this task (XML Tag) |

hasSelectors(
)
:
booleanIndicates whether there are any selectors here.
Inherited from: \MatchingTask::hasSelectors()| Type | Description |
|---|---|
| boolean | Whether any selectors are in this container |

init(
)
:
voidEnsures that PEAR lib exists.
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| Exception | Description |
|---|---|
| \BuildException |

log(
string $msg, integer $level
=
Project::MSG_INFO
)
:
voidProvides a project level log event to the task.
Inherited from: \Task::log()\MatchingTask::log()| Name | Type | Description |
|---|---|---|
| $msg | string | The message to log |
| $level | integer | The priority of the message |
- See
- \BuildEvent
- See
- \BuildListener

main(
)
:
voiddo the work
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
| Exception | Description |
|---|---|
| \BuildException |

maybeConfigure(
)
:
voidConfigure this task if it hasn't been done already.
Inherited from: \Task::maybeConfigure()\MatchingTask::maybeConfigure()
selectorCount(
)
:
intGives the count of the number of selectors in this container
Inherited from: \MatchingTask::selectorCount()| Type | Description |
|---|---|
| int | The number of selectors in this container |

selectorElements(
)
:
\anReturns an enumerator for accessing the set of selectors.
Inherited from: \MatchingTask::selectorElements()| Type | Description |
|---|---|
| \an | enumerator that goes through each of the selectors |

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

setCaseSensitive(
boolean $isCaseSensitive
)
:
void
| Name | Type | Description |
|---|---|---|
| $isCaseSensitive | boolean | "true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not. |

setCompression(
$mode
)
:
voidSet compression method.
Allowable values are
- none - no compression
- gzip - Gzip compression
- bzip2 - Bzip2 compression
| Name | Type | Description |
|---|---|---|
| $mode |

setDefaultexcludes(
boolean $useDefaultExcludes
)
:
voidSets whether default exclusions should be used or not.
Inherited from: \MatchingTask::setDefaultexcludes()| Name | Type | Description |
|---|---|---|
| $useDefaultExcludes | boolean | "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used. |

setDescription(
string $desc
)
:
voidSets a textual description of the task
Inherited from: \Task::setDescription()\MatchingTask::setDescription()| Name | Type | Description |
|---|---|---|
| $desc | string | The text describing the task |

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

setExcludes(
string $excludes
)
:
voidSets the set of exclude patterns. Patterns may be separated by a comma or a space.
Inherited from: \MatchingTask::setExcludes()| Name | Type | Description |
|---|---|---|
| $excludes | string | the string containing the exclude patterns |

setExcludesfile(
\PhingFile $excludesfile
)
:
voidSets the name of the file containing the includes patterns.
Inherited from: \MatchingTask::setExcludesfile()| Name | Type | Description |
|---|---|---|
| $excludesfile | \PhingFile | A string containing the filename to fetch the include patterns from. |

setFollowSymlinks(
boolean $followSymlinks
)
:
voidSets whether or not symbolic links should be followed.
Inherited from: \MatchingTask::setFollowSymlinks()| Name | Type | Description |
|---|---|---|
| $followSymlinks | boolean | whether or not symbolic links should be followed |

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

setIncludes(
string $includes
)
:
voidSets the set of include patterns. Patterns may be separated by a comma or a space.
Inherited from: \MatchingTask::setIncludes()| Name | Type | Description |
|---|---|---|
| $includes | string | the string containing the include patterns |

setIncludesfile(
\PhingFile $includesfile
)
:
voidSets the name of the file containing the includes patterns.
Inherited from: \MatchingTask::setIncludesfile()| Name | Type | Description |
|---|---|---|
| $includesfile | \PhingFile | A string containing the filename to fetch the include patterns from. |

setLocation(
\Location $location
)
:
voidSets the location within the buildfile this task occurs. Called by the parser to set location information.
Inherited from: \Task::setLocation()\MatchingTask::setLocation()| Name | Type | Description |
|---|---|---|
| $location | \Location | The location object describing the position of this task within the buildfile. |

setLongfile(
$mode
)
:
voidSet how to handle long files, those with a path>100 chars.
Optional, default=warn.
<
p> Allowable values are
- truncate - paths are truncated to the maximum length
- fail - paths greater than the maximim cause a build exception
- warn - paths greater than the maximum cause a warning and GNU is used
- gnu - GNU extensions are used for any paths greater than the maximum.
- omit - paths greater than the maximum are omitted from the archive
| Name | Type | Description |
|---|---|---|
| $mode |

setOwningTarget(
\Target $target
)
:
voidSets the owning target this task belongs to.
Inherited from: \Task::setOwningTarget()\MatchingTask::setOwningTarget()| Name | Type | Description |
|---|---|---|
| $target | \Target | Reference to owning target |

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

setProject(
\Project $project
)
:
voidReferences the project to the current component.
Inherited from: \MatchingTask::setProject()| Name | Type | Description |
|---|---|---|
| $project | \Project | The reference to the current project |

setRuntimeConfigurableWrapper(
\RuntimeConfigurable $wrapper
)
:
voidSets the wrapper object this task should use for runtime configurable elements.
Inherited from: \Task::setRuntimeConfigurableWrapper()\MatchingTask::setRuntimeConfigurableWrapper()| Name | Type | Description |
|---|---|---|
| $wrapper | \RuntimeConfigurable | The wrapper object this task should use |

setTaskName(
string $name
)
:
stringSets the name of this task for log messages
Inherited from: \Task::setTaskName()\MatchingTask::setTaskName()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| string | A string representing the name of this task for log |

setTaskType(
string $name
)
:
voidSets the type of the task. Usually this is the name of the XML tag
Inherited from: \Task::setTaskType()\MatchingTask::setTaskType()| Name | Type | Description |
|---|---|---|
| $name | string | The type of this task (XML Tag) |