Re: Problem Reusing Condition API

2009-07-03 Thread Mithun Gonsalvez
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 wrote: > On Wed, Jun 24, 2009 at 5:46 AM, Mithun > Gonsalvez wrote: > >> This adds a nested tag, while you add

Re: Problem Reusing Condition API

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 5:46 AM, Mithun Gonsalvez wrote: >> This adds a nested tag, while you add a one. >> You need to have an add() method instead. I don't recall the exact rules >> though. >  The tag when evaluated to true, will set a property [which i > want to avoid] >  Instead i would lik

Re: Problem Reusing Condition API

2009-06-24 Thread Mithun Gonsalvez
Hi Dominique, Thank You for the reply. > Why derive from MacroDef rather than simply Task? I want the functionality of MacroDef 'attribute' as well as sequence. Thought that this might be way by which I do not have to write everything :) > This adds a nested tag, while you add a one. > You n

Re: Problem Reusing Condition API

2009-06-23 Thread Dominique Devienne
On Tue, Jun 23, 2009 at 7:55 AM, Mithun Gonsalvez wrote: > public class TestCheck extends MacroDef { Why derive from MacroDef rather than simply Task? >    public static class MySingleArgument { > >        List conditions = new ArrayList(); > >        public void addConfiguredCondition(Condition

Problem Reusing Condition API

2009-06-23 Thread Mithun Gonsalvez
Hi All, I have a small problem (hopefully): I am trying to extend MacroDef to aggregate certain arguments depending upon conditions. *Ant-File:* *Extension