Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 91143 invoked from network); 18 Aug 2005 22:12:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 22:12:41 -0000 Received: (qmail 49884 invoked by uid 500); 18 Aug 2005 22:12:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 49845 invoked by uid 500); 18 Aug 2005 22:12:36 -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 49824 invoked by uid 99); 18 Aug 2005 22:12:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 15:12:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown spf1 (asf.osuosl.org: encountered unrecognized mechanism during SPF processing of domain of akrishni@savvion.com) Received: from [206.40.33.101] (HELO mailrelay1.savvion.com) (206.40.33.101) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 15:12:54 -0700 Received: from mail.savvion.com (mail.savvion.com [10.1.6.6]) by mailrelay1.savvion.com (Symantec Mail Security) with ESMTP id 49A1E598; Thu, 18 Aug 2005 15:11:37 -0700 (PDT) Received: from [10.1.5.55] (jerusalem.savvion.com [10.1.5.55]) by mail.savvion.com (Postfix) with ESMTP id 313712FC007; Thu, 18 Aug 2005 18:00:41 -0400 (EDT) Message-ID: <430507FB.7090404@savvion.com> Date: Thu, 18 Aug 2005 15:13:15 -0700 From: Anand Krishniyer User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List , xmltask-users@lists.sourceforge.net Subject: Re: how to resolve a path from a XML file (XMLTask) References: <4304EEAB.7080809@savvion.com> <430500E8.4040200@oopsconsultancy.com> In-Reply-To: <430500E8.4040200@oopsconsultancy.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Brian In my case i don't know the number elements in the XML (it can vary) for. e.g I can have or just Brian Agnew wrote: > This isn't really an xmltask issue (in which case > xmltask-users@lists.sourceforge.net is the list to point to). xmltask > will just read your XML file 'as is'. However you can solve the below > using xmltask using something like (and I haven't tested this but it > should give you an idea): > > > > > > and so on, prior to using the instruction. > > Anand Krishniyer wrote: > >> Hi >> I am trying to read a path from an XML file. >> For e.g here is an XML >> >> >> > target="${myapp2.dir}/common/jsp"/ > >> > target="${myapp4.dir}/common/jsp"/ > >> >> >> And the section of the ant build file looks like this >> >> >> >> > path="a/b" target="package-Resources" inheritAll="true" >> inheritRefs="true"> >> >> >> >> >> The values of the variables myapp1.dir, myapp2.dir, myapp3.dir, >> myapp4.dir are available in the sbm.conf file and are loaded >> correctly. When I read the src from the xml file, the full patch for >> ${src}doesn't get resolved. The ${src} remains as >> ${myapp1.dir}/common/jsp. How to resolve this a correct path? >> >> Any help would be greatly appreciated. >> >> Regards >> Anand >> >> >> --------------------------------------------------------------------- >> 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