ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: antlib
Date Thu, 22 May 2003 09:44:18 GMT
On Thu, 22 May 2003, Antoine Levy-Lambert <>

> Reading this, and knowing that computearea and computeperimeter
> accept shapes as nested element, a build file writer would know that
> <circle/> and <square/> can be nested inside <computearea/> and
> <computeperimeter/>.

So roles make the antlib descriptor more expressive, this is true.
I'm not sure that the build file writer is going to read the antlib
descriptor, though.

> This descriptor also says that ShapeInterface should have a special
> meaning for ant, which for instance Serializable, Cloneable, ... do
> not necessarily have.


With roles, would an arbitrary implementation of ShapeInterface that
was not bundled with the antlib and was not declared to be in role
shape be accepted as nested element in <computearea/>?

If the answer is yes, then roles would be optional and would mainly be
used to make things more explicit, right?  This is fine with me.


View raw message