Where are the ant-contrib tasks? Specifically the <if> and <foreach> tasks? I don't see them listed (or in the jar) for the optional tasks, nor are they listed in the external tools and tasks, that I see.
-----Original Message----- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 1:21 PM To: Ant Users List; [EMAIL PROTECTED] Subject: Re: Accessing the individual files in the file list --- John Mc Quillan <[EMAIL PROTECTED]> wrote: > Is there a way in Ant to get at the individual files in the file list Yes -- 'id' the <fileset>, then 'refid' that in <pathconvert>. > A command line parameter allows the package name for output to be > defined. What I'd like to do is set the package name to the name > of the input file. Can I do this with a script? That, or the ant-contrib <foreach> task. > How would I get the file name in a script? Once the set of files is in a property (as a list), you can reference that property (in <foreach>) or get the value of the property (in <script>) and step through it there. Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
