Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 86118 invoked from network); 15 Mar 2005 12:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Mar 2005 12:09:48 -0000 Received: (qmail 73594 invoked by uid 500); 15 Mar 2005 12:09:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73565 invoked by uid 500); 15 Mar 2005 12:09:39 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 73551 invoked by uid 99); 15 Mar 2005 12:09:39 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of abunetta@gmail.com designates 64.233.184.202 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.202) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Mar 2005 04:09:39 -0800 Received: by wproxy.gmail.com with SMTP id 58so3702wri for ; Tue, 15 Mar 2005 04:09:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:thread-index:x-mimeole:message-id; b=abeoIw2OgKjFS6O4hYi99tWuPtG8tXmRr0L62zs9rHbmQI6hNVLvwxUv2OdqndwOlZrI1R+hU048xQ1fWyILM7HZUF95HnTlf4sn7uG5gaZwVRI4qfD9UjXfpAFP9cMI8DqUu5vTb1FbGdt4/cgG/m1uIZsLHENhJR6cmYTsLM4= Received: by 10.38.15.37 with SMTP id 37mr570034rno; Tue, 15 Mar 2005 04:09:33 -0800 (PST) Received: from gpsdreznik ([192.117.238.41]) by mx.gmail.com with ESMTP id k23sm308950rnb.2005.03.15.04.09.32; Tue, 15 Mar 2005 04:09:33 -0800 (PST) From: "David Resnick" To: "'Ant Users List'" Subject: RE: Why "Trying to override old definition of task xxx" message? Date: Tue, 15 Mar 2005 14:09:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <4236BC7E.9030000@apache.org> Thread-Index: AcUpS4fy08xX4zuOR7K/UgiiZKrN4gADATyA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <4236d07d.76b2f2cb.1057.5510@mx.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----Original Message----- From: Peter Reilly [mailto:peterreilly@apache.org] Sent: Tuesday, March 15, 2005 12:44 To: Ant Users List Subject: Re: Why "Trying to override old definition of task xxx" message? What does the macrodef look like? Peter David Resnick wrote: >I renamed the macro attributes (which were includes, source and dest) to >names that are definitely not in use, but there is no change. > >I also thought that the problem might be with the name of the macro clashing >with the copy task, but as I also have a copy.compile.pre macro that doesn't >cause the warning, that isn't it either. > >-----Original Message----- >From: Peter Reilly [mailto:peterreilly@apache.org] >Sent: Wednesday, March 09, 2005 16:03 >To: Ant Users List >Subject: Re: Why "Trying to override old definition of task xxx" message? > >If you use or and if the "copy.compile.post" macro >contains text or attributes that have embedded properties (like "${name}") >which may change when the a new project is used, the macro >contents will be different and the ant core code will whine about >a change to the macro. > >There is a bug report about this (cannot remember the number) from >a netbeans developer. > >Peter > >David Resnick wrote: > > > >>As best as I can see it, I am only defining it once. >> >>This is the situation: >> >>There are 2 files: Main.xml and tools.xml. >> >>In Main.xml (directly inside the project element) I have: >> >> >> >>Inside targets in Main.xml I use the copy.compile.post macro. >> >> >>In tools.xml (also directly inside the project element) I have: >> >> >> . >> . >> . >> >> >>...along with a dozen other macros. >> >> >>copy.compile.post is the only macro that Ant complains about, and it only >>complains some of the time (I haven't been able to see a pattern about when >>it complains). >> >>-David >> >>-----Original Message----- >>From: Peter Reilly [mailto:peterreilly@apache.org] >>Sent: Wednesday, March 09, 2005 15:25 >>To: Ant Users List >>Subject: Re: Why "Trying to override old definition of task xxx" message? >> >>Looks like you are redefining a macrodef. >> >>For exmple: >> >> >> >> >> >> >> >> >> >> >> >>Would cause the macro "doit" to be defined twice. >>Normally, one would place macrodefs outside of targets >>and give them different names. >> >> >> >> >> >> >> >> >> >> >> >> >> >>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: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> >> >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org