|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ise.antelope.tasks.Foreach
public class Foreach
Task container that iterates through a list of values, puts each value into a property, then executes all nested tasks.
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Foreach()
|
|
| Method Summary | |
|---|---|
void |
addTask(org.apache.tools.ant.Task task)
Add a nested task to execute. |
void |
execute()
Execute this task and all nested Tasks. |
void |
maybeConfigure()
Override maybeConfigure
in a way that leaves the nested tasks unconfigured until they get
executed. |
void |
setFailonerror(boolean fail)
Ant boolean, stop the build process if any nested task fails. |
void |
setProperty(java.lang.String name)
Sets the name of the property to set the value in. |
void |
setSeparator(java.lang.String separator)
Sets the separator for the values string, defaults to comma. |
void |
setTrim(boolean trim)
If true, will trim whitespace from both ends of the value. |
void |
setValues(java.lang.String values)
Sets the values to iterate through. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Foreach()
| Method Detail |
|---|
public void setFailonerror(boolean fail)
fail - Ant boolean, whether to stop the build on error.public void setValues(java.lang.String values)
values - The new values valuepublic void setSeparator(java.lang.String separator)
separator - The new separator valuepublic void setProperty(java.lang.String name)
name - The new property valuepublic void setTrim(boolean trim)
trim - The new trim value
public void maybeConfigure()
throws org.apache.tools.ant.BuildException
maybeConfigure
in a way that leaves the nested tasks unconfigured until they get
executed.
maybeConfigure in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - Description of Exceptionpublic void addTask(org.apache.tools.ant.Task task)
addTask in interface org.apache.tools.ant.TaskContainertask - Nested task to execute.
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - Description of Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||