ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Stulsky" <vitaly_stul...@yahoo.com>
Subject RE: Call for patches
Date Tue, 23 May 2000 15:07:46 GMT
> I notice there are more and more requests to beef up the logic support for
> tasks, like IFNOT and multiple IFs.  One thing to consider is to drop in an
> existing logic parser, that would allow nested and more complicated boolean
> statements, such as Mozilla's Rhino JavaScript engine.
>
> On a project of mine we had a need for doing something similar (not for
> Ant, but for an XML properties file).  Certain tags had an IF attribute
> that was evaluated as boolean JavaScript code.  It allows us to put
> arbitrarily complex boolean logic.
>
> On top of that it also gave more script power within the properties file
> such as computing values based on system properties, and parsing and
> manipulating strings, etc...
>
> Integrating Rhino into our XML parsing was extremely trivial and took about
> 10-15 lines of code.

I love this idea. Even more - I'll be glad to write script code for the
difficult
logic pieces. I think this ability allows ant to cover huge part of complex
scripts.
For some purposes I use them now and will be glad to avoid their usage as
far as it possible.

Vitaly


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message