ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@qis.net>
Subject Re: Creating two same-type subelements with different names
Date Wed, 27 Jul 2005 03:17:31 GMT
ah! ok. i thought the method name and type had to match.


----- Original Message ----- 
From: "Conor MacNeill" <conor@apache.org>
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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message