ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject Macrodef default for <element>
Date Mon, 01 Mar 2004 21:38:27 GMT
One can have a default for macrodef attributes, but not for elements, AFAIK.

Can it be added? Imagine I want to do something like:

<macrodef name="compile">
  <element name="resources">
    <include name=="**/*.properties" />
    ...
  </element>
  <sequential>
    ...
    <copy dir="src" todir="build/resources/@{name}">
      <resources/>
    </copy>
  </sequential>
</macrodef>

So that the uses of the <compile> macro only have to specify a <resources>
element when a given use wants to override the default. Thanks, --DD

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


Mime
View raw message