You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Jencks <da...@directvinternet.com> on 2002/08/22 02:43:26 UTC
Re: Can Ant iterate?
I think you want apply
david jencks
On 2002.08.21 20:43:41 -0400 Ron Chernich wrote:
> We are considering migrating from make to ant for our Java projects, but
> have hit a hitch where a makefile tag needs to iterate over a pattern
> matched set of files, calling a java application. Something like:
>
> LIST=`ls config/*.xml`
> ...
> for F in $(LIST); do
> $(JAVA) com.mumble.SchemaCompiler $(F)
> done
>
> I can see how FileSet will give me the list and AntCall could execute a
> Task to run our schema compiler, but can't see how to join the two up.
> Is it possible or do we just not get it?
>
> Ron Chernich
> Engineering Director, DSTC
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>