From: <rya...@jb...> - 2005-04-28 22:45:21
|
"ad...@jb..." wrote : Probably the most general solution is to allow any element to be added to a macro by making each type implement DynamicElement not just DynamicAttribute? | Yes, that's what I was thinking. I like the junit-elements idea. anonymous wrote : The downside is the loss of validation if you mistype and sub-element. Yes, I think is a serious flaw. I could add a in tasks.xml which would list the allowed dynamic elements to prevent silent errors such as the one above. | <dynamicElements> | <dynamicElement name="junit-element"/> | </dynamicElements> | I don't think I should add this at the targetdef/template level because a given targetdef won't necessarily know/care about all dynamic elements. http://jira.jboss.com/jira/browse/JBBUILD-70 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875847#3875847 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875847 |