Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 34177 invoked from network); 9 Oct 2008 20:56:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 20:56:51 -0000 Received: (qmail 93501 invoked by uid 500); 9 Oct 2008 20:56:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93467 invoked by uid 500); 9 Oct 2008 20:56:46 -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 93456 invoked by uid 99); 9 Oct 2008 20:56:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 13:56:46 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.171] (HELO moutng.kundenserver.de) (212.227.126.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 20:55:42 +0000 Received: from [192.168.178.2] (nrbg-4dbfed78.pool.einsundeins.de [77.191.237.120]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1Ko2YS35kQ-0007bA; Thu, 09 Oct 2008 22:56:16 +0200 Message-ID: <48EE6FF4.8000400@schillbaer.de> Date: Thu, 09 Oct 2008 22:56:20 +0200 From: Gilbert Rebhan User-Agent: Thunderbird 2.0.0.17 (X11/20080922) MIME-Version: 1.0 To: Ant Users List Subject: Re: how to copy and edit a section of a text file References: <19898362.post@talk.nabble.com> <19904051.post@talk.nabble.com> <48EE4A60.6090700@schillbaer.de> <19906328.post@talk.nabble.com> In-Reply-To: <19906328.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+4OT7O7EMFfoYSeqYSXrotj4y7ggLsf7NEjKq O2MClc+nkWTTjajEWde4bUVBhyBlwD8bdD/XXvJkIDgm9g4xCa D6uUmlcfLG4YIsWa6Oa1w== X-Virus-Checked: Checked by ClamAV on apache.org ca_iancu schrieb: >> Can you provide a little more details, xmlfile how it is and how it > More details, certainly! I need to find/read/duplicate a section of an xml > file, then append it and make a simple change to the added section. I need > to go from: > > > > > > ..........a number of lines of properties here (irrelevant, unchanged) > > > hm, still not clear for me ... > to the following: > > > > > > ..........a number of lines of properties here (irrelevant, unchanged) > > > > ..........a number of lines of properties here (irrelevant, unchanged) > > > you mean copy one name attribute ... and append it as ... ?? > That's it. The problem for me is: copy the text in a variable, then append > right after the end of the existing text. I briefly looked at the xmltask > but it seemed like what it does is read an xml file, and then it sets the > existing fields to ant properties. It didn't seem like it's something I > could use for text processing. oh, the xml task is great for editing xml files, that's what xmltask is made for ;-) Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org