Looks like you are redefining a macrodef.

For exmple:

<target name="compile" depends="copy">
  <macrodef name="doit" .../>
  <doit/>
</target>

<target name="copy">
  <macrodef name="doit" .../>
  <doit/>
</target>

Would cause the macro "doit" to be defined twice.
Normally, one would place macrodefs outside of targets
and give them different names.

<macrodef name="copy_it".../>

<macrodef name="compile_it" ../>

<target name="compile" depends="copy">
 <compile_it/>
</target>

<target name="copy">
  <copy_it/>
</target>

Peter

David Resnick wrote:

I have a project with a dozen macrodef definitions. Today I added 2 more and
now get the message "Trying to override old definition of task xxx" for one
of the new macros at the start of most targets. The message doesn't seem to
have any effect on the build, but I would like to know why it suddenly
appeared.



Does anyone know?



Thanks, David






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



Reply via email to