20030606 Friday June 06, 2003

[Ant] Trying to override old definition of task $taskname I've seen the following message printed out as part of our build process for quite a few months now - and decided to try and fix it today.

compile-common:
Trying to override old definition of task runservertests
Trying to override old definition of task canoo
Trying to override old definition of task dbunit

I found that moving my <taskdef>'s from the root level (right under <project>) to inside my "init" target fixed the problem. Easy fix, no more messages. Posted in Java at Jun 06 2003, 08:32:29 AM MDT 2 Comments

Comments:

Helpful detail. Worked for me too. Thanks!

Posted by LH on October 20, 2006 at 03:51 PM MDT #

I had a similar problem: I got repeated "Trying to override old definition of task for" warnings. In my case, I eventually tracked it down to the fact that I had ant-contrib in my classpath in two separate locations. In this situation, Ant will load both versions and correctly warn that there's a problem.

Posted by 195.212.29.79 on February 20, 2012 at 09:54 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud