net.sf.antcontrib.logic
public class For extends Task
Constructor Summary | |
---|---|
For()
Creates a new For instance.
|
Method Summary | |
---|---|
void | add(Map map)
Add a Map, iterate over the values
|
void | add(FileSet fileset)
Add a fileset to be iterated over.
|
void | add(DirSet dirset)
Add a dirset to be iterated over.
|
void | add(Collection collection)
Add a collection that can be iterated over.
|
void | add(Iterator iterator)
Add an iterator to be iterated over.
|
void | add(Object obj)
Add an object that has an Iterator iterator() method
that can be iterated over.
|
void | addConfigured(Path path)
This is a path that can be used instread of the list
attribute to interate over. |
void | addConfiguredPath(Path path)
This is a path that can be used instread of the list
attribute to interate over. |
void | addDirSet(DirSet dirset)
Add a dirset to be iterated over.
|
void | addFileSet(FileSet fileset)
Add a fileset to be iterated over.
|
Object | createSequential() |
void | execute()
Run the for task.
|
void | setDelimiter(String delimiter)
Set the delimiter attribute.
|
void | setKeepgoing(boolean keepgoing)
Set the keepgoing attribute, indicating whether we
should stop on errors or continue heedlessly onward.
|
void | setList(String list)
Set the list attribute.
|
void | setOwningTarget(Target target) |
void | setParallel(boolean parallel)
Attribute whether to execute the loop in parallel or in sequence. |
void | setParam(String param)
Set the param attribute.
|
void | setProject(Project project) |
void | setThreadCount(int threadCount)
Set the maximum amount of threads we're going to allow
to execute in parallel |
void | setTrim(boolean trim)
Set the trim attribute.
|
For
instance.
This checks if the ant version is correct to run this task.Parameters: map a Map object - iterate over the values.
Parameters: fileset a FileSet
value
Parameters: dirset a DirSet
value
Parameters: collection a Collection
value.
Parameters: iterator an Iterator
value
Parameters: obj An object that can be iterated over.
Parameters: path the path to be set by the ant script.
Parameters: path the path to be set by the ant script.
Parameters: dirset a DirSet
value
Parameters: fileset a FileSet
value
Returns: a MacroDef#NestedSequential object to be configured
Parameters: delimiter the delimiter used to separate the tokens in the list attribute. The default is ",".
Parameters: keepgoing a boolean, if true
then we act in
the keepgoing manner described.
Parameters: list a list of delimiter separated tokens.
Parameters: parallel if true execute the tasks in parallel. Default is false.
Parameters: param the name of the macrodef attribute.
Parameters: threadCount the number of threads to use
Parameters: trim if true, trim the value for each iterator.