Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 11987 invoked from network); 26 Feb 2002 02:31:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 26 Feb 2002 02:31:13 -0000 Received: (qmail 19885 invoked by uid 97); 26 Feb 2002 02:31:16 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 19856 invoked by uid 97); 26 Feb 2002 02:31:16 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 19829 invoked from network); 26 Feb 2002 02:31:15 -0000 Message-ID: <013e01c1be6c$bbec1040$0100a8c0@jose> From: "Jose Alberto Fernandez" To: "Ant Developers List" References: <200202252014.g1PKESU06020@mail004.syd.optusnet.com.au> Subject: Re: TaskAdapter and execute() Date: Tue, 26 Feb 2002 02:23:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Peter Donald" To: "Ant Developers List" Sent: Monday, February 25, 2002 7:57 PM Subject: Re: TaskAdapter and execute() > I would prefer you write a new that worked with whatever = rules you=20 > wanted to use and used your own adapter rather than growing ants base = adapter >=20 I agree. Of course on 's proposal you just need to add a new = role with a new Adapter and the same TaskContainer interface and presto ;-) Jose Alberto > On Tue, 26 Feb 2002 06:03, costinm@covalent.net wrote: > > One of the changes I've made for better 'embedability' or > > integration of ant is in TaskAdatper, the ability to > > 'adapt' java beans using a different name for the execute method. > > > > For example, while most tomcat startup beans follow ant > > conventions and would work perfectly in ant, we follow > > the 'normal' java bean mechanisms with 'start()', 'stop()', > > etc as names for methods. > > > > The change ( you can find it in sandbox for now ) allows > > a different method to be used in the 'adapted' bean. > > In addition, it allows 'noop' beans to be used - i.e. > > the properties will be set and a ref registered, with no > > action on the bean itself ( the bean can be used by another > > bean using the ref ). While this may not be a big deal > > ( adding an empty execute() is easy ), it helps for existing > > classes. > > > > Opinions ? There are few (negative) tests that assume an > > exception will be thrown if no execute() is found, and > > obviously the beans would not work with ant1.4 ( since > > it'll be a new feature ). > > > > > > Costin >=20 > --=20 > Cheers, >=20 > Pete >=20 > --------------------------------------------------- > "Wise men don't need advice. Fools don't take it."=20 > -Benjamin Franklin=20 > --------------------------------------------------- >=20 >=20 > -- > To unsubscribe, e-mail: = > For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: