ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <Sebastien.Bl...@alcatel.com>
Subject Re: jython <script>
Date Wed, 28 May 2003 12:52:44 GMT
Hi !
true, but it looks to me like the foreach is a loop on a finite number of
elements and cannot contain any conditional exit statement (asin the while).
for instance how to express (in pure ANT) the following: while (${property}!=
value) {do something } ?
seb.

Jacob Kjome wrote:

> You can use the ant-contrib project's <foreach> task which is, essentially,
> a looping <antcall>.  It works quite nicely.  No need to script.
>
> Jake
>
> At 10:18 PM 5/27/2003 -0500, you wrote:
> >Hello !
> >
> >does anybody know of an equivalent of the javascript
> >projName.getUserProperty / projName.createTask calls for jython (or
> >jptyhon) BSF ? the only link I found on jython <script> is the
> >following:
> >http://www.lonsteins.com/articles/jython-bsf.html
> >and it does not mention ANT integration.
> >
> >[btw I currently script becoz I can't find an ANT way to simulate a
> >while loop (the only way I would have think of, would have been if the
> >waitFor task would have supported a nested <antcall>); seems to me that
> >waitFor is interesting to use when the condition is set internally to
> >the ANT system with parallel although when it is an external condition
> >(for instance looking up a log file for an expected trace) I don't find
> >any solution.]
> >
> >thanx.
> >
> >seb.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message