On Thu, 22 May 2003, Antoine Levy-Lambert <[EMAIL PROTECTED]>
wrote:

> It is perfectly possible to program ant so that roles are optional
> and just make things more explicit.

It certainly is.  Peter's patch is half-way there (roles are not
optional but not there at all 8-) - roles can be plugged into the two
new methods in IntrospectionHelper rather easily.

> Roles could be used to disambiguate situations where a component
> class implements several interfaces which have a meaning for ant,
> say Shape and Block for instance, and a task accepts both shapes and
> blocks as nested elements.

As could an attribute on the nested element itself.  But I agree with
the use-case anyway.

Stefan

Reply via email to