You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marc Gemis <ma...@belgium.agfa.com> on 2002/06/10 15:34:25 UTC

1.5b2 and TaskDefs 'override' warnings

I'm not sure what to do:

If I define a new task with TaskDef and have either a ant or antcall in my
build.xml file, I get the following (after ant/antcall is executed):


Trying to override old definition of task my_task


This was not the case in 1.4.1. This only appears in 1.5b2. Is this a beta
issue ? Or should I somehow change my build-file ? Or my task ?


Marc.
 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: 1.5b2 and TaskDefs 'override' warnings

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 10 Jun 2002, Marc Gemis <ma...@belgium.agfa.com>
wrote:

> This was not the case in 1.4.1.

Yes, 1.4.1 wouldn't tell you that you were overriding an existing
taskdef at all.

> Or should I somehow change my build-file ?

Don't <taskdef> your task unless you need it.  Only <taskdef> it once
(i.e. don't <taskdef> it again in the part that gets called by
<ant*>).

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>