ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Greenlee" <CGreen...@demandsolutions.com>
Subject RE: Parameters and Ant
Date Tue, 01 May 2001 22:02:54 GMT

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:holtdl@yahoo.com]
> Sent: Tuesday, May 01, 2001 3:12 PM
> To: ant-dev@jakarta.apache.org
> Subject: Re: Parameters and Ant
> 
> 
> --- Jean Bresse <jeanb@classwave.com> 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
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 

Mime
View raw message