|
||||||||||
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.For
Task definition for the for task. This is based on the foreach task but takes a sequential element instead of a target and only works for ant >= 1.6Beta3
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 | |
For()
Creates a new For instance. |
Method Summary | |
org.apache.tools.ant.types.Path |
createPath()
This is a path that can be used instread of the list attribute to interate over. |
java.lang.Object |
createSequential()
|
void |
execute()
Run the for task. |
void |
setDelimiter(java.lang.String delimiter)
Set the delimiter attribute. |
void |
setList(java.lang.String list)
Set the list attribute. |
void |
setParam(java.lang.String param)
Set the param attribute. |
void |
setTrim(boolean trim)
Set the trim attribute. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, 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 For()
For
instance.
This checks if the ant version is correct to run this task.
Method Detail |
public void setTrim(boolean trim)
trim
- if true, trim the value for each iterator.public void setList(java.lang.String list)
list
- a list of delimiter separated tokens.public void setDelimiter(java.lang.String delimiter)
delimiter
- the delimitier used to separate the tokens in
the list attribute. The default is ",".public void setParam(java.lang.String param)
param
- the name of the macrodef attribute.public org.apache.tools.ant.types.Path createPath()
public java.lang.Object createSequential()
public void execute()
execute
in class org.apache.tools.ant.Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |