ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Implicit element for macrodef
Date Tue, 25 May 2004 12:15:49 GMT
I am looking into an implementation of implicit nested elements for

The useage is like this;

    <macrodef name="showfiles">
      <attribute name="property"/>
      <element name="files" implicit="yes"/>
        <pathconvert property="@{property}" pathsep=":">
        <echo message="${@{property}}"/>
    <showfiles property="x">
      <fileset dir="." includes="*.xml"/>

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).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message