ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
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)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message