ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
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
usefull.

Originally if the same attributes where in the preset and then reset in the
script,
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}"
          debug="${debug}"/>
</presetdef>

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

now works as expected.

Peter

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


Mime
View raw message