Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 26902 invoked from network); 21 Aug 2002 18:40:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Aug 2002 18:40:18 -0000 Received: (qmail 7447 invoked by uid 97); 21 Aug 2002 18:40:46 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 7431 invoked by uid 97); 21 Aug 2002 18:40:46 -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 7419 invoked by uid 98); 21 Aug 2002 18:40:45 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Authentication-Warning: costinm.sfo.covalent.net: costin owned process doing -bs Date: Wed, 21 Aug 2002 11:36:15 -0700 (PDT) From: costinm@covalent.net X-X-Sender: costin@costinm.sfo.covalent.net To: Ant Developers List Subject: Re: How do I create ant task elements nested two or more deep? In-Reply-To: <3D63D894.7030302@ehatchersolutions.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 21 Aug 2002, Erik Hatcher wrote: > Costin Manolache wrote: > > > I didn't know about DynamicConfigurator. I have many classes where > > setAttribute() pattern is used - maybe I can enhance it a bit to > > actually use introspection and not require the actual interface ? > > ( i.e. if setAttribute()/createElement() method is found, use it ). > > For the main branch at least. > > But what if I want an attribute literally called 'attribute' or an > element called 'element'? setAttribute(String, String ) is different from setAttribute(String) :-) Same for createElement(String) and createElement(). > How is what you're proposing an enhancement to this? Probably not enhancement - just using it in a different way. I personally preffer writing tasks that don't extend Task - i.e. just regular java beans that follow ant patterns, but independent of ant. Costin -- To unsubscribe, e-mail: For additional commands, e-mail: