The <foreach> task also allows <item> elements (in addition to <fileset>s), which don't have to be the names of files or directories.
Cheers, Chris Greenlee > -----Original Message----- > From: Diane Holt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 01, 2001 3:12 PM > To: [EMAIL PROTECTED] > Subject: Re: Parameters and Ant > > > --- Jean Bresse <[EMAIL PROTECTED]> wrote: > > 1) Can Ant receive parameters from its caller? > > Yes. The <antcall> task allows for nested <param> tags (see the user > manual for details). > > > For example, suppose I have a list of names and I want to invoke the > > same set of tasks for each name. I would want to ave one Ant process > call > > another one, I would want to call it n times (where n is > the number of > > names) and pass in as a parameter the name in question. > > A <foreach> task was recently submitted to the list (search > the ant-dev > archive for "foreach"), but it works with filesets -- so if > your "names" > aren't files (or directories), you'll probably need to use > the <script> > task. > > Diane > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ >