|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--net.sf.antcontrib.logic.ForEach
Task definition for the foreach task. The foreach task iterates over a list, a list of filesets, or both.
Usage: Task declaration in the project:<taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" />
Call Syntax:<foreach list="values" target="targ" param="name" [delimiter="delim"] />
Attributes: list --> The list of values to process, with the delimiter character, indicated by the "delim" 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 ","
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ForEach()
Default Constructor |
Method Summary | |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Deprecated. Use createPath instead. |
void |
addParam(org.apache.tools.ant.taskdefs.Property p)
Corresponds to <antcall> 's nested
<param> element. |
void |
addReference(org.apache.tools.ant.taskdefs.Ant.Reference r)
Corresponds to <antcall> 's nested
<reference> element. |
org.apache.tools.ant.types.Path |
createPath()
|
void |
execute()
|
void |
setDelimiter(java.lang.String delimiter)
|
void |
setInheritall(boolean b)
Corresponds to <antcall> 's inheritall
attribute. |
void |
setInheritrefs(boolean b)
Corresponds to <antcall> 's inheritrefs
attribute. |
void |
setList(java.lang.String list)
|
void |
setParam(java.lang.String param)
|
void |
setTarget(java.lang.String target)
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ForEach()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setList(java.lang.String list)
public void setDelimiter(java.lang.String delimiter)
public void setParam(java.lang.String param)
public void setTarget(java.lang.String target)
public void setInheritall(boolean b)
<antcall>
's inheritall
attribute.
public void setInheritrefs(boolean b)
<antcall>
's inheritrefs
attribute.
public void addParam(org.apache.tools.ant.taskdefs.Property p)
<antcall>
's nested
<param>
element.
public void addReference(org.apache.tools.ant.taskdefs.Ant.Reference r)
<antcall>
's nested
<reference>
element.
public void addFileset(org.apache.tools.ant.types.FileSet set)
public org.apache.tools.ant.types.Path createPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |