ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wellie W. Chao" <>
Subject RE: 1.5b2 and TaskDefs 'override' warnings
Date Tue, 18 Jun 2002 23:09:44 GMT
I'm having this same problem with the added pain that it actually breaks
something (i.e. not just display of warnings). I have a feeling that the
problem relates to classloaders. How does one use the loaderRef
attribute? The documentation is a bit spare.

Excerpt from my build below:
Trying to override old definition of task ejbdoclet
Trying to override old definition of task webdoclet

    [mkdir] Created dir: /home/wchao/projects/shared/build/lib
     [copy] Copying 11 files to /home/wchao/projects/shared/build/lib

    [mkdir] Created dir:
[ejbdoclet] /home/wchao/projects/shared/build.xml:143: At least one
fileset must be specified
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at
[ejbdoclet]     at

/home/wchao/projects/shared/build.xml:143: Unexpected error

Original message:
Subject:  Re: 1.5b2 and TaskDefs 'override' warnings
From:     Stefan Bodewig <>
Date:     2002-06-11 16:14:51

On Mon, 10 Jun 2002, Dominique Devienne <> wrote:

> But isn't this a bug Stefan!?!?!

I don't think so.

The second <taskdef> will be loaded via a different classloader.  Some
people use static information or Singleton like stuff to hold state in
the tasks and they will want to know what's going on.

In general people will probably want to know when they override an
existing taskdef with a different one.  You won't get the message if
you use the same classloader in all taskdefs, which can be achieved
with 1.5beta2's new loaderref attribute.

We might decrease the logging level to verbose output only if the
classes are different but the class names are the same (i.e. the tasks
only differ in the classloader being used).


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message