ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Marchesani" <glenl...@model3.net>
Subject Re: how to run a task once for each file in a set....
Date Fri, 10 May 2002 20:07:31 GMT
Where can one find SF's (who is SF?) <foreach> task.  That sounds very
attractive.  A close second is fixing the <antlr> task...

thanks,
Glen

----- Original Message -----
From: "Dominique Devienne" <DDevienne@lgc.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Friday, May 10, 2002 9:31 PM
Subject: RE: how to run a task once for each file in a set....


> Well, the best way would be to fix <antlr> to take a fileset ;-)
> Next, you could use SF's ant-contrib's <foreach> task.
> Finally, since there's no <apply> equivalent (the same as <exec>, but
> executing the command for all files at once or once per file) for <java>,
> you could use <apply> with your <fileset> of grammars, executing ANT,
> calling the antlr'ize target with the current grammar file as a property.
> Not pretty, but the only way I see you could do it with ANT as-is, short
of
> using a <script> of course ;-) --DD
>
> -----Original Message-----
> From: Glen Marchesani [mailto:glenlist@model3.net]
> Sent: Friday, May 10, 2002 2:12 PM
> To: ant-user@jakarta.apache.org
> Subject: how to run a task once for each file in a set....
>
> I have a directory of ANTLR grammers (*.g files) and I want to be able to
> run the ANTLR task on each one without having to explicitly specifiy an
> <ANTLR> tag for each file is this possible?  I have this need not just for
> the ANTLR files so a general solution is most desirable.  The reason is
all
> the .g files are not always known at the time of writing the build.xml but
> are determined in the running of the build.xml.
>
> any help is appreciated.
>
> thanks,
> Glen
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message