<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: 70c954d4be94b47661fdf20450e77b9592e4f4b3 $ |
package |
phing.tasks.system |
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
process(\Task $callee, \PhingFile $fromDir, array $srcFiles, array $srcDirs)
setList($list)
setTarget($target)
setParam($param)
setAbsparam($absparam)
setDelimiter($delimiter)
createFileSet()
createMapper() : object
access |
public |
---|---|
throws |
object
The created Mapper type object
createProperty() : \Property
\Property
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
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