Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49866 invoked from network); 9 Mar 2005 13:59:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Mar 2005 13:59:58 -0000 Received: (qmail 41682 invoked by uid 500); 9 Mar 2005 13:59:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41637 invoked by uid 500); 9 Mar 2005 13:59:53 -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 41623 invoked by uid 99); 9 Mar 2005 13:59:53 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from gate.corvil.net (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Mar 2005 05:59:53 -0800 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id j29DxmwS047280 for ; Wed, 9 Mar 2005 13:59:49 GMT (envelope-from peterreilly@apache.org) Message-ID: <422F0205.8080500@apache.org> Date: Wed, 09 Mar 2005 14:02:45 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Why "Trying to override old definition of task xxx" message? References: <422eff6a.3618377c.4e30.ffffbf21@mx.gmail.com> In-Reply-To: <422eff6a.3618377c.4e30.ffffbf21@mx.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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