Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25359 invoked from network); 28 Apr 2005 09:51:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2005 09:51:36 -0000 Received: (qmail 97036 invoked by uid 500); 28 Apr 2005 09:52:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 97005 invoked by uid 500); 28 Apr 2005 09:52:30 -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 96991 invoked by uid 99); 28 Apr 2005 09:52:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ilmail.cdomain.com) (212.150.197.59) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 28 Apr 2005 02:52:29 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Looking for task to add text to file. Date: Thu, 28 Apr 2005 12:52:17 +0200 Message-ID: <90B91B4B5C7D4646935754AB0735115471031E@ILMAIL> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Looking for task to add text to file. Thread-Index: AcVL4BqdM+oamB3/SQmWiqODj8eX3gAACoNQ From: "Nir Geier" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks alot. i will try it all now. Ty=20 -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] Sent: Thursday, April 28, 2005 11:49 AM To: user@ant.apache.org Subject: AW: Looking for task to add text to file. Some possibilities which come into my mind: 1) using 2) using and filters while ing - extract part before - extract part after using to combine before, new and after parts 3) using your own task, start with http://marc.theaimsgroup.com/?l=3Dant-user&m=3D110691291123439&w=3D2 4) the original file is a "template" and you could use a with while ing and having a ${propname}=20 inside your "template". Not any particular order ... Jan =20 > -----Urspr=FCngliche Nachricht----- > Von: Nir Geier [mailto:Nir.Geier@unipier.com] > Gesendet am: Donnerstag, 28. April 2005 12:42 > An: Ant Users List > Betreff: RE: Looking for task to add text to file. >=20 > Ty=20 >=20 > i need to add it to certain location insid ethe file. > not to write log messages. >=20 >=20 > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: Thursday, April 28, 2005 11:39 AM > To: user@ant.apache.org > Subject: AW: Looking for task to add text to file. >=20 >=20 > message >=20 >=20 > Jan >=20 >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Nir Geier [mailto:Nir.Geier@unipier.com] > > Gesendet am: Donnerstag, 28. April 2005 12:16 > > An: Ant Users List > > Betreff: RE: Looking for task to add text to file. > >=20 > >=20 > > Ty Gilbert. > > I will look into it in details. > >=20 > >=20 > >=20 > > -----Original Message----- > > From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] > > Sent: Thursday, April 28, 2005 10:34 AM > > To: Ant Users List > > Subject: RE: Looking for task to add text to file. > >=20 > >=20 > >=20 > > Hi, > >=20 > > i've had a similar problem > >=20 > > see =3D > >=20 > > http://marc.theaimsgroup.com/?l=3Dant-user&m=3D110691291123439&w=3D2 > >=20 > > for a solution, if you don't want to use concat/replace ... > >=20 > > Since i needed to put in a property i changed the example of Jan > > to take a property. > >=20 > > Gilbert > >=20 > > -----Original Message----- > > From: Nir Geier [mailto:Nir.Geier@unipier.com]=20 > > Sent: Thursday, April 28, 2005 11:18 AM > > To: Ant Users List > > Subject: Looking for task to add text to file. > >=20 > > Hi all, > >=20 > > Im trying to append text to file and I could't find any=20 > suitable task > > for doing so. > > As a workaround im using the 'Replace' task. > > (http://ant.apache.org/manual/CoreTasks/replace.html) > >=20 > > Another option is the 'Concat' ( > > http://ant.apache.org/manual/CoreTasks/concat.html ) but it=20 > is limited > > to the start/end > > of file while i need to place the text in a certain place=20 > in the file. > >=20 > > As far as i know there isnt any made task to this problem. > > I wonder maybe someone have any other solution. > >=20 > > in the worst case i will write my own task but I'm short on time. > >=20 > > TY all inadvance. > >=20 > >=20 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > >=20 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > >=20 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org