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?
ok, so there we are - Ant does not require the createXXX() method, but makes it optional. Thats what I was referring to.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
- Christian
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
