Dominique Devienne wrote:
Ant does not use setMyAttr(SomeType) for nested elements, just for
attributes, and requires a SomeType(String) Ctor when an 'myattr' attribute
is found.
?? What would the String argument to the constructor be?


What you are referring to is addMyElem(MyElemClass) which does use the
default MyElemClass default Ctor when seeing a nested <myelem> element. Or
as James pointed out, use MyElemClass createMyElem(), to enable
polymorphism. --DD
ok, so there we are - Ant does not require the createXXX() method, but makes it optional. Thats what I was referring to.

- Christian


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to