From user-return-64088-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon Mar 03 13:17:06 2008 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 23212 invoked from network); 3 Mar 2008 13:17:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 13:17:05 -0000 Received: (qmail 84311 invoked by uid 500); 3 Mar 2008 13:16:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 84278 invoked by uid 500); 3 Mar 2008 13:16:57 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 84267 invoked by uid 99); 3 Mar 2008 13:16:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 05:16:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 72.14.204.238 as permitted sender) Received: from [72.14.204.238] (HELO qb-out-0506.google.com) (72.14.204.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 13:16:23 +0000 Received: by qb-out-0506.google.com with SMTP id z1so7652450qbc.10 for ; Mon, 03 Mar 2008 05:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tsrQpxMbmumRIeAR3n7lHt2Qz/CTeBziztTMN/cbPDU=; b=Dlt90dWMuxFtFZZ9nY1fPFYFdyR9Rl/hs90XcTinFDe+b+E7XiUr1sU1PhJYyYFOFbEoNF/nnBJQoh9R45wiXY/sXqiWRSBsibsG+2D7wl+VhAUPtH1rTuloXjl8mr9qcA69sMFxPPD9feMkVOo85GlCcAWM66fv9cN6ghvgPqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Z2fA2K4lAdQ2i6BbBPPxXlbKXSy3k1L/Krk4xYSvezPm38jfIti+dkA82jXv6s/hyOvl9L14jDFkBbhR6gRUXRJia9ZCr0JIqC5SN5pVaB//HmnxA1CSntWjwMIUQfNVB+hAaSzLRl4hcPgmbMvDjcIBKDz1MGtS/bIlDIbgSkM= Received: by 10.142.224.5 with SMTP id w5mr8998161wfg.215.1204550191753; Mon, 03 Mar 2008 05:16:31 -0800 (PST) Received: by 10.142.172.11 with HTTP; Mon, 3 Mar 2008 05:16:31 -0800 (PST) Message-ID: Date: Mon, 3 Mar 2008 13:16:31 +0000 From: "Peter Reilly" To: "Ant Users List" Subject: Re: task, inheritAll=false and ant.version property In-Reply-To: <2C89AC11F6D7F9469B7E4A71D8309FFD74E85E@nemesis.axiom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2C89AC11F6D7F9469B7E4A71D8309FFD74E85E@nemesis.axiom.com> X-Virus-Checked: Checked by ClamAV on apache.org This is a bug in ant 1.7.0, it has been fixed and will be in the soon to be released 1.7.1. https://issues.apache.org/bugzilla/show_bug.cgi?id=42263 Peter On Mon, Mar 3, 2008 at 9:53 AM, Keith Hatton wrote: > It seems that something has changed between Ant 1.6.2 and 1.7.0 in the > way the ant.version property is handled when another build file is > invoked using the task. > > Given the following files: > main-build.xml: > > > Ant version is ${ant.version} > > > > > sub-build.xml: > > > Ant version is ${ant.version} > > > > I get the following results: > Ant 1.6.2: > C:\...>ant -f main-build.xml > Buildfile: main-build.xml > > main-build: > [echo] Ant version is Apache Ant version 1.6.2 compiled on July 16 > 2004 > > sub-build: > [echo] Ant version is Apache Ant version 1.6.2 compiled on July 16 > 2004 > > But with Ant 1.7.0: > C:\...>ant -f main-build.xml > Buildfile: main-build.xml > > main-build: > [echo] Ant version is Apache Ant version 1.7.0 compiled on December > 13 2006 > > > sub-build: > [echo] Ant version is ${ant.version} > > > Is this an Ant bug? It seems reasonable that ant.version should not be > inherited, but I would have expected the new Ant "environment" to detect > its own version and set the property (and maybe other ant.* properties > too), and clearly it did that before. > > Thanks, > Keith > > > Axiom Systems Limited is a limited company registered in England and > Wales. Registered number: 2358771. Registered office: One Forbury > Square, The Forbury, Reading, Berks RG1 3EB > > --------------------------------------------------------------------- > 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