|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.antcontrib.logic.ForDelegate
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
Constructor Summary | |
ForDelegate()
Creates a new For instance. |
Method Summary | |
void |
add(java.util.Collection collection)
Add a collection that can be iterated over. |
void |
add(org.apache.tools.ant.types.DirSet dirset)
Add a dirset to be iterated over. |
void |
add(org.apache.tools.ant.types.FileSet fileset)
Add a fileset to be iterated over. |
void |
add(java.util.Iterator iterator)
Add an iterator to be iterated over. |
void |
add(java.util.Map map)
Add a Map, iterate over the values |
void |
add(java.lang.Object obj)
Add an object that has an Iterator iterator() method that can be iterated over. |
void |
addConfigured(org.apache.tools.ant.types.Path path)
This is a path that can be used instread of the list attribute to interate over. |
void |
addConfiguredPath(org.apache.tools.ant.types.Path path)
This is a path that can be used instread of the list attribute to interate over. |
void |
addDirSet(org.apache.tools.ant.types.DirSet dirset)
Add a dirset to be iterated over. |
void |
addFileSet(org.apache.tools.ant.types.FileSet fileset)
Add a fileset to be iterated over. |
java.lang.Object |
createSequential()
|
void |
execute()
Run the for task. |
void |
setDelimiter(java.lang.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(java.lang.String list)
Set the list attribute. |
void |
setLogger(org.apache.tools.ant.util.TaskLogger logger)
Specify a logger to be used for passing along messages. |
void |
setOwningTarget(org.apache.tools.ant.Target owningTarget)
|
void |
setParallel(boolean parallel)
Attribute whether to execute the loop in parallel or in sequence. |
void |
setParam(java.lang.String param)
Set the param attribute. |
void |
setProject(org.apache.tools.ant.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ForDelegate()
For
instance.
This checks if the ant version is correct to run this task.
Method Detail |
public void setOwningTarget(org.apache.tools.ant.Target owningTarget)
public void setProject(org.apache.tools.ant.Project project)
public void setParallel(boolean parallel)
parallel
- if true execute the tasks in parallel. Default is false.public void setThreadCount(int threadCount)
threadCount
- the number of threads to usepublic void setTrim(boolean trim)
trim
- if true, trim the value for each iterator.public void setKeepgoing(boolean keepgoing)
keepgoing
- a boolean, if true
then we act in
the keepgoing manner described.public void setList(java.lang.String list)
list
- a list of delimiter separated tokens.public void setDelimiter(java.lang.String delimiter)
delimiter
- the delimiter 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 void addConfigured(org.apache.tools.ant.types.Path path)
path
- the path to be set by the ant script.public void addConfiguredPath(org.apache.tools.ant.types.Path path)
path
- the path to be set by the ant script.public java.lang.Object createSequential()
public void execute()
public void setLogger(org.apache.tools.ant.util.TaskLogger logger)
public void add(java.util.Map map)
map
- a Map object - iterate over the values.public void add(org.apache.tools.ant.types.FileSet fileset)
fileset
- a FileSet
valuepublic void addFileSet(org.apache.tools.ant.types.FileSet fileset)
fileset
- a FileSet
valuepublic void add(org.apache.tools.ant.types.DirSet dirset)
dirset
- a DirSet
valuepublic void addDirSet(org.apache.tools.ant.types.DirSet dirset)
dirset
- a DirSet
valuepublic void add(java.util.Collection collection)
collection
- a Collection
value.public void add(java.util.Iterator iterator)
iterator
- an Iterator
valuepublic void add(java.lang.Object obj)
obj
- An object that can be iterated over.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |