Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 92202 invoked from network); 18 Jun 2002 23:47:05 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Jun 2002 23:47:05 -0000 Received: (qmail 24249 invoked by uid 97); 18 Jun 2002 23:47:08 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 24239 invoked by uid 97); 18 Jun 2002 23:47:08 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 637 invoked by uid 98); 18 Jun 2002 23:10:00 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Wellie W. Chao" To: Subject: RE: 1.5b2 and TaskDefs 'override' warnings Date: Tue, 18 Jun 2002 19:09:44 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: ----- init: Trying to override old definition of task ejbdoclet Trying to override old definition of task webdoclet support-lib: [mkdir] Created dir: /home/wchao/projects/shared/build/lib [copy] Copying 11 files to /home/wchao/projects/shared/build/lib ejbdoclet: [mkdir] Created dir: /home/wchao/projects/shared/build/gen-src/classes [ejbdoclet] /home/wchao/projects/shared/build.xml:143: At least one fileset must be specified [ejbdoclet] at xjavadoc.ant.XJavadocTask.validateOptions(XJavadocTask.java:114) [ejbdoclet] at xdoclet.DocletTask.validateOptions(DocletTask.java:361) [ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:107 ) [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:50) [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java) [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java) [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java) [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java) [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java) [ejbdoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java) [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java) [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java) [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java) [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java) [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java) [ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java) [ejbdoclet] at org.apache.tools.ant.Main.start(Main.java) [ejbdoclet] at org.apache.tools.ant.Main.main(Main.java) BUILD FAILED /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 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). Stefan -- To unsubscribe, e-mail: For additional commands, e-mail: