ah! ok. i thought the method name and type had to match.


----- Original Message ----- From: "Conor MacNeill" <[EMAIL PROTECTED]>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, July 26, 2005 8:42 PM
Subject: Re: Creating two same-type subelements with different names




Dave Brosius wrote:
sorry, i realized i posted this under a copied message subject, which
made no sense.....
so here goes again.

Howdy, I have my own task that requires two FileSet sub-elements. In order
to differentiate them from a naming point of view, i have created my own
tasks that are empty subclasses of FileSet, merely for the reason of
naming.
It works fine, but was just wondering if this was the expected way to
accomplish this?


Not in general. The element name comes from the method used to add the
instance, and not its type.

So, use addFoo(FileSet f) and addBar(FileSet b)

Conor

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to