ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mithun Gonsalvez <mithungonsal...@gmail.com>
Subject Re: Problem Reusing Condition API
Date Sat, 04 Jul 2009 04:20:16 GMT
Hi Dominique,

Sorry for the extremely late reply...
Thanks to your inputs, I was able to pull it off :)

Thank You,
Mithun Gonsalvez

On Wed, Jun 24, 2009 at 7:38 PM, Dominique Devienne <ddevienne@gmail.com>wrote:

> On Wed, Jun 24, 2009 at 5:46 AM, Mithun
> Gonsalvez<mithungonsalvez@gmail.com> wrote:
> >> This adds a nested <condition> tag, while you add a <equals> one.
> >> You need to have an add() method instead. I don't recall the exact rules
> though.
> >  The <condition> tag when evaluated to true, will set a property [which i
> > want to avoid]
> >  Instead i would like to evaluate the conditions and take another action.
> >  Currently I am adding methods specific to different Condition Types, as
> you
> > have mentioned.
>
> That's what I was trying to tell you, but terminology got in the way.
> There's <condition> the task (ConditionTask), and there's Condition
> the interface implemented by all conditions.
>
> If you have a void add(Condition c) method in your task, this makes your
> task accept any nested tags with 'is a' Condition automatically. That's
> one of the newer introspection rule added by Peter Reilly in Ant 1.6,
> which is more generic that the older addTag/addConfiguredTag rules,
> which only accept a nested <tag>. --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message