I would find it very useful -- I'm working towards trying to be able to
use Ant off-the-shelf, and my mods for test-for-equality for the current
if/unless (along with being able to resolve properties referenced right of
the "=" -- eg., unless="sane=${sanity}") are probably the last ones I
still can't get rid of (now that <javac> has been reworked). However, the
likelihood of it being accepted is probably somewhat low, as there is an
aversion to introducing this sort of thing into "standard" Ant. I believe
the idea for Ant2 is to allow for this sort of thing to be more easily
done for home-grown tasks, but still not include any of those as part of
the standard tasks.Diane --- Tim Vernum <[EMAIL PROTECTED]> wrote: > > This is actually what I have been working on. This sort of > > relates to my > > second question. I basically wanted to integrate scripting to allow > > conditional execution of targets. I was using the 'if' and 'unless' > > attributes of target, but they will only evaluate to 'true' > > if the property > > is set, where I wanted them to evaluate to a boolean expression. > > In light of the above and similar comments, I went and hacked together a > "equal" task which compares two strings, and sets a property if they're > equal. > Not exactly full boolean support, but a start. > An Expression task would be interesting, but more work than I have to > put in right now. > > The attached file is a proto-type on a "equal" task, and a sample build > file. > It's not read to be commited or anything, but I thought I'd see if > anyone thought it was useful before I put any more work into it. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
