Foreach

The foreach task iterates over a list, a list of filesets, or both.

Parameters

Attribute Description Required
list The list of values to process, with the delimiter character, indicated by the "delimiter" attribute, separating each value. Yes, unless a nested Fileset has been specified.
target Name of the target to call for each token or matched file. Yes
param Name of the parameter to pass the tokens or files in as to the target. Yes
delimiter The delimiter string that separates the values in the "list" attribute. No, defaults to ",".
inheritall If true, pass all properties to the called target. Defaults to false. No
inheritrefs If true, pass all references to the the called target. Defaults to false. No

Parameters specified as nested elements

fileset

FileSets are used to select sets of files to iterate over.

param

Specifies the properties to set before running the specified target. See property for usage guidelines.

reference

Used to chose references that shall be copied into the new project, optionally changing their id.

Attribute Description Required
refid The id of the reference in the calling project. Yes
torefid The id of the reference in the called project. No, defaults to the value of refid.

Copyright © 2002 Ant-Contrib Project. All rights Reserved.