RE: DispatchTask

2004-06-06 Thread Magesh Umasankar
Subject:RE: DispatchTask From: Dominique Devienne Date: 2004-06-06 17:50:23 > So if I need to derive from something else that DispatchTask, I can simply > implement Dispatchable and don't even need an execute method, since you've > modified the introspecti

RE: DispatchTask

2004-06-06 Thread Dominique Devienne
e following: So if I need to derive from something else that DispatchTask, I can simply implement Dispatchable and don't even need an execute method, since you've modified the introspection code too. Clever! The only small concern I have with the impl is that, unless I've misread the c

RE: DispatchTask

2004-06-04 Thread Magesh Umasankar
Subject:RE: DispatchTask From: Dominique Devienne Date: 2004-06-04 15:14:02 > public static void dispatchAction(String action, Task target) { ... } > > or > > public static void dispatchAction(String action, Object target) { ... } > > to make it fully bea

RE: DispatchTask

2004-06-04 Thread Dominique Devienne
> From: Magesh Umasankar [mailto:[EMAIL PROTECTED] > > > I'd like to introduce the concept of a DispatchTask to Ant. > > > > Do you think a task with a mode/action that selects the method to run > > instead of execute is really that common? > > Well, it

Re: DispatchTask

2004-06-04 Thread Stefan Bodewig
On Fri, 4 Jun 2004, Magesh Umasankar <[EMAIL PROTECTED]> wrote: > I don't see it as a debate on whether multiple tasks are better > Vs. mutiple actions per task. DispatchTask is to be viewed as an > alternative to writing multiple tasks and must be used diligently. > I

Re: DispatchTask

2004-06-04 Thread Magesh Umasankar
From: Stefan Bodewig Date: 2004-06-04 12:45:50 Hi Stefan, > > I'd like to introduce the concept of a DispatchTask to Ant. > > Do you think a task with a mode/action that selects the method to run > instead of execute is really that common? Well, it is a pretty

Re: DispatchTask

2004-06-04 Thread Stefan Bodewig
Hi Magesh, nice to read from you. On Wed, 2 Jun 2004, Magesh Umasankar <[EMAIL PROTECTED]> wrote: > I'd like to introduce the concept of a DispatchTask to Ant. Do you think a task with a mode/action that selects the method to run instead of execute is really that common? It

RE: DispatchTask

2004-06-02 Thread Magesh Umasankar
Subject:RE: DispatchTask From: Dominique Devienne Date: 2004-06-02 18:50:53 > Hi Magesh. It's been a long time ;-) :-) > What's the advantage of this other writing different tasks, possibly with > the usual Java code re-use? Especially if different mode

RE: DispatchTask

2004-06-02 Thread Dominique Devienne
> From: Magesh Umasankar [mailto:[EMAIL PROTECTED] > Hi, > > I'd like to introduce the concept of a DispatchTask to Ant. This class > may > be subclassed by tasks that perform multiple operations depending upon a > parameter. Currently, the task-writer would be

DispatchTask

2004-06-02 Thread Magesh Umasankar
Hi, I'd like to introduce the concept of a DispatchTask to Ant. This class may be subclassed by tasks that perform multiple operations depending upon a parameter. Currently, the task-writer would be using if...else if...else constructs. Extending from this class would make it more el