ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin de Dardel <benjamin.dedar...@gmail.com>
Subject adding dynamic element
Date Sat, 05 Nov 2011 07:57:27 GMT
Hi all,

I would like to add a dynamic element and instanciate it dynamically 
using 'instanceof' attribute.
Something like that :

<mytask>
<mydynamicelement instanceof="my.first.class">
<some-inner>
</some-inner>
</mydynamicelement>
<mydynamicelement instanceof="my.second.class">
<some-other-inner>
</some-other-inner>
</mydynamicelement>
</mytask>

I fail in using method : public Object createDynamicElement(String name),
because I have to return the instance of my element before parsing its 
attributes.

Do you have any idea to find a solution ?

Best regards,
Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message