ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@apache.org>
Subject Re: Creating two same-type subelements with different names
Date Wed, 27 Jul 2005 00:42:27 GMT


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


Mime
View raw message