Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 46741 invoked from network); 29 Oct 2003 22:34:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Oct 2003 22:34:00 -0000 Received: (qmail 4737 invoked by uid 500); 29 Oct 2003 22:33:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4702 invoked by uid 500); 29 Oct 2003 22:33:37 -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 4689 invoked from network); 29 Oct 2003 22:33:37 -0000 Received: from unknown (HELO mail4.fanniemae.com) (198.204.142.64) by daedalus.apache.org with SMTP; 29 Oct 2003 22:33:37 -0000 Received: from fm-mailfw1y.fanniemae.com (fw05y.fanniemae.com [198.204.141.208]) by mail4.fanniemae.com (8.11.7p1+Sun/8.11.7) with SMTP id h9TMUQv20841 for ; Wed, 29 Oct 2003 17:30:26 -0500 (EST) Received: from 198.204.145.131 by fm-mailfw1y.fanniemae.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 29 Oct 2003 17:33:02 -0500 X-Server-Uuid: 611fd078-1d0c-11d4-90c7-00508bcfbe58 X-FNMA: PMX4-PROD Received: from MAILVS01.core.fanniemae.com (fm-core17 [192.168.161.19]) by psysadm-mail02b.fanniemae.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id h9TMXfBF019185 for ; Wed, 29 Oct 2003 17:33:41 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Doubt in using ENTITY Date: Wed, 29 Oct 2003 17:33:41 -0500 Message-ID: <4B403CC09777BF4D93AD9005FD35D72759B126@MAILVS01.core.fanniemae.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Doubt in using ENTITY Thread-Index: AcOeOq/ef9K8K0xvQyS6vwfNwnUGtwALprwA From: "Chen Becky" To: "Ant Users List" X-WSS-ID: 13BE9F94274580-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bob (Robert E. Newby), Your code sample is helpful for me as well. I have an extra requirement that I need to setup a property with different value based on some conditions. I wonder if I can have build-properties.xml looks like this: But when I invoke "build-properties-file;" from build.xml, how can I tell build-properties.xml to run only , or ? I know this is more like XML question than ANT, any thoughts? Thanks. Becky -----Original Message----- From: Robert E. Newby [mailto:Bob_Newby@vestmark.com]=20 Sent: Wednesday, October 29, 2003 11:15 AM To: user@ant.apache.org Subject: Re: Doubt in using ENTITY vikramjit singh wrote: >=20 > Hi, >=20 > I am making a properties.xml file, which holds all the properties and=20 > the corresponding path. I am including the properties.xml file in=20 > build.xml like this below >=20 > project [ > > ]> >=20 > >=20 > &properties; >=20 > ... > >=20 > In my properties file, if i make the xml well formed i.e. enclose the=20 > properties and path tags in a parent tag, then i get the following=20 > error. The properties.xml file structure snippet is as below.. >=20 > >=20 > > > > ... > >=20 > BUILD FAILED > file:./properties.xml:1: more pseudo attributes is expected. >=20 > But if i remove, and the tag and=20 > dont enclose a parent tag, then all runs fine. >=20 > Is this as it is to be done, or am i missing something. >=20 > Regards, > Vikram. Vikram, We do this all the time, with great results. Here are some code snippets. >From a representative build.xml file: ]> and: &build-properties-file; etc. In the referenced build-properties.xml file, both: and: =20 etc. As you've discovered, since the &build-properties-file; performs textual inclusion of the external entity's content, the external entity cannot have a root xml element. I hope this helps clear things up for you. Regards, Bob -- Robert E. Newby Principal Software Engineer Vestmark, Inc. 500 Edgewater Drive, Suite 564 Wakefield, Massachusetts 01880 USA 781-224-3646 | Bob _ Newby @ vestmark . com | www . vestmark . com --------------------------------------------------------------------- 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