public class ForeachTask
extends org.apache.tools.ant.Task
For Axis development; there is no support or stability associated with this task
<target name="target1"> <foreach target="target2"> <param name="param1"> <fileset refid="fset1"/> </param> <param name="param2"> <item value="jar" /> <item value="zip" /> </param> </foreach> </target> <target name="target2"> <echo message="prop is ${param1}.${param2}" /> </target>
ExecuteOn
. It allows the user
to specify whether directories, files, or both directories and files
from the filesets are included as entries in the parameter set.Constructor and Description |
---|
ForeachTask() |
Modifier and Type | Method and Description |
---|---|
ParamSet |
createParam() |
void |
execute() |
void |
init() |
void |
setFork(boolean f)
If true, forks the ant invocation.
|
void |
setInheritAll(boolean inherit)
If true, pass all properties to the new Ant project.
|
void |
setInheritRefs(boolean inheritRefs)
If true, pass all references to the new Ant project.
|
void |
setTarget(String target)
Target to execute, required.
|
void |
setVerbose(boolean verbose)
Enable verbose output when signing
; optional: default false
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
public void init()
init
in class org.apache.tools.ant.Task
public void setInheritAll(boolean inherit)
public void setInheritRefs(boolean inheritRefs)
inheritRefs
- new valuepublic void setTarget(String target)
public void setFork(boolean f)
f
- "true|false|on|off|yes|no"public void setVerbose(boolean verbose)
public ParamSet createParam()
public void execute()
execute
in class org.apache.tools.ant.Task
Copyright © The Apache Software Foundation. All Rights Reserved.