ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <>
Subject Re: macrodef - do attributes as properties or substitutions
Date Wed, 12 Nov 2003 10:32:49 GMT
On Tuesday 11 November 2003 19:01, Jose Alberto Fernandez wrote:
> BTW, how this things will affect the other tasks derived from macrodef
> like presetdef?

Although they were introduced at the same time and
in some ways are similar, presetdef is not derived from macrodef.

Note that a recent change to <presetdef> has made it more

Originally if the same attributes where in the preset and then reset in the
the attributes in question would be set twice. This causes some grief.
The implementation now (in cvs and the next 1.6 beta), treats the attributes
as default values which may be overridden when used.

For example:
<presetdef name="my.javac">
   <javac srcdir="src" destdir="classes" deprecation="${deprecation}"

   <my.javac srcdir="test/src" .../>

now works as expected.


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

View raw message