I have implemented a test for this in ant cvs. So ant 1.6.3
should not show the "task override" warning for this
situation.

Peter

Peter Reilly wrote:

The problem is most likely the default value for the "dest" attribute
if you are using <ant>, <antcall> or <subant>

For example:
<project default="caller">
 <macrodef name="copy.compile.post">
   <attribute name="dest"
              default="${dir.bin.work}"/>
   <sequential>
   </sequential>
 </macrodef>
 <target name="called">
 </target>
 <target name="caller">
   <property name="dir.bin.work" value="."/>
   <antcall target="called"/>
 </target>
</project>

this issue was reported as bug 31215.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31215

This issue are happened a number of times, so I think
that the ant code could be modified to allow macrodefs that are different in
contents (due to property values changing) but otherwise the same to
be treated as "similar" - resulting in a log message at verbose level and
not at warning level.


Peter



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to