Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 28754 invoked from network); 20 Feb 2008 03:18:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 03:18:49 -0000 Received: (qmail 76052 invoked by uid 500); 20 Feb 2008 03:18:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76023 invoked by uid 500); 20 Feb 2008 03:18:40 -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 76012 invoked by uid 99); 20 Feb 2008 03:18:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 19:18:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.184.85.11] (HELO odin2.bull.net) (129.184.85.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 03:17:51 +0000 Received: from fr-hub.frcl.bull.fr (fr-hub.frcl.bull.fr [129.184.87.22]) by odin2.bull.net (8.9.3/8.9.3) with ESMTP id EAA70132 for ; Wed, 20 Feb 2008 04:27:22 +0100 Received: from [129.184.13.106] ([129.184.13.106]) by bjn-001.bull.net (Lotus Domino Release 6.0.1) with ESMTP id 2008022010541271-1699 ; Wed, 20 Feb 2008 10:54:12 +0800 Message-ID: <47BB9AEF.2070408@bull.net> Date: Wed, 20 Feb 2008 11:13:51 +0800 From: Olivier Gies Reply-To: olivier.gies@bull.net Organization: Bull Information Systems (Beijing) Co., Ltd. User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Ant Users List Subject: Re: Migrating form ANT 1.6 to 1.7: xmlproperty References: <47BADE15.3060803@kelis.fr> In-Reply-To: <47BADE15.3060803@kelis.fr> X-MIMETrack: Itemize by SMTP Server on BJN-001/CN/BULL(Release 6.0.1|February 07, 2003) at 02/20/2008 10:54:12, Serialize by Router on FR-HUB/FR/BULL(Release 5.0.11 |July 24, 2002) at 20/02/2008 04:18:12, Serialize complete at 20/02/2008 04:18:12 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org Hi Sam, From my point of view, a solid approach would simply be to override Ant's task with a new attribute like "setempty", set to "false", or "true" depending on the convenience, by default... Then use to define your overriding class as the task. Olivier -------- Original Message -------- Subject: Migrating form ANT 1.6 to 1.7: xmlproperty From: Samuel Monsarrat To: user@ant.apache.org Date: 19/02/2008 21:49 > I am attempting to migrate a large ANT build system from 1.6 to 1.7 and > am running into a problem with xmlproperty. > We use xmlproperty massively in our build system and very often "stack" > several xmlproperty calls in order to build a complex property 'tree', > where several inter-dependent build files will declare and/or overload > parts of the tree using xmlproperty. > Our approach however is completely incompatible with ANT 1.7 due to a > modification to xmlproperty (bug 26286 c.f. > http://issues.apache.org/bugzilla/show_bug.cgi?id=26286) that forces > "empty" elements in an XML property tree to be declared. > > Consider the following exemple: > ===> build_A.xml : > > > > > > > > > ===> about_A.xml: > > > > > ===> build_B.xml : > > > > > > > > > > ===> about_B.xml: > > 2.4.0 > > > The aim is : When running build_A.xml use most of about_B.xml but > overload certain parts of it with about_A.xml > > In ANT 1.6 about_A.xml would only set property > app.version(developmentStage) effectively overloading the > developmentStage defined in about_B.xml, but with ANT 1.7, about_A.xml > also sets the property app.version to "empty" thus making it impossible > for about_B.xml to define it as 2.4.0. > > In ANT 1.6 the output is: > [echo] The version number is: '2.4.0' > [echo] The development stage is: 'beta' > > in ANT 1.7 the output is: > [echo] The version number is: '' > [echo] The development stage is: 'beta' > > This makes it impossible to use xmlproperty to overload a single path in > a complex property tree, and therefore destroys one of the main features > of the task as far as I can see. > Has anybody come across the same problem? any workaround? > Regards, > Samuel. > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org -- *Olivier Gies* *Delivery Manager Customs & Tax Software Engineering Center Bull, Architect of an Open World ^TM Phone: +86 (10) 65978001 - Ext 555 * *www.bull.com * *This e-mail contains material that is confidential for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.* --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org