<foreach> task
Task definition for the foreach task. This task takes a list with delimited values, and executes a target with set param.
Usage:
Attributes: list --> The list of values to process, with the delimiter character, indicated by the "delimiter" attribute, separating each value. target --> The target to call for each token, passing the token as the parameter with the name indicated by the "param" attribute. param --> The name of the parameter to pass the tokens in as to the target. delimiter --> The delimiter string that separates the values in the "list" parameter. The default is ",".
author |
Jason Hines jason@greenhell.com |
---|---|
author |
Hans Lellelid hans@xmpl.org |
version |
$Id: 46bd390ab29b8784b4a07b2a91afcba295b7d334 $ |
package |
phing.tasks.system |
addFileSet(\FileSet $fs) : void
createMapper() : object
throws | |
---|---|
object
The created Mapper type object
createProperty() : \Property
\Property
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
process(\Task $callee, \PhingFile $fromDir, array $srcFiles, array $srcDirs)
setAbsparam( $absparam)
setDelimiter( $delimiter)
setDescription(string $desc)
string
The text describing the task
setList( $list)
setLocation(\Location $location)
setOwningTarget(\Target $target)
setParam( $param)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTarget( $target)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
list :
param :
absparam :
delimiter :
callee : \PhingCallTask
filesets :
mapperElement :
filelists : array
var |
---|
array
calleeTarget : string
var |
---|
string
total_files : integer
var |
---|
integer
total_dirs : integer
var |
---|
integer
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project