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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to