I am looking into an implementation of implicit nested elements for
macrodef:

http://issues.apache.org/bugzilla/show_bug.cgi?id=25633
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=27569

The useage is like this;

<macrodef name="showfiles">
<attribute name="property"/>
<element name="files" implicit="yes"/>
<sequential>
<pathconvert property="@{property}" pathsep=":">
<path>
<files/>
</path>
</pathconvert>
<echo message="[EMAIL PROTECTED]"/>
</sequential>
</macrodef>
<showfiles property="x">
<fileset dir="." includes="*.xml"/>
</showfiles>
</target>


The implementation does however involve a small Backward Incompatible change to the
implementation of MacroInstance.
It would affect java code that used MacroInstance.createDynamicElement().


The implementation involves splitting DynamicConfiguator interface into two interfaces,
DymanicAttribute and DynamicElement.


MacroInstance then implements DynamicAttribute and TaskContainer.

The implemention is not complete yet (needs doc's and unit-tests).

Peter

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



Reply via email to