Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 39174 invoked from network); 2 Apr 2003 07:55:21 -0000 Received: from mail.tapiola.fi (193.209.71.68) by daedalus.apache.org with SMTP; 2 Apr 2003 07:55:21 -0000 Received: from S05023 (localhost [127.0.0.1]) by mail.tapiola.fi (8.12.9/8.12.9) with ESMTP id h327Zbis032647 for ; Wed, 2 Apr 2003 10:35:37 +0300 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: Inserting text at start of file Date: Wed, 2 Apr 2003 10:54:15 +0300 Message-ID: <59DDE36CD52FA34D98909970572A28A50CDD84@S05023.tapio001.tapiola.fi> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Inserting text at start of file Thread-Index: AcL47Q6MFjNhvOZkSZ2apQRy1lPlsA== From: "North Alex" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi I want to insert a line of text (with CR LF at end) to the start of an existing file. There is no token to replace ... just a plain insert at start. I just can't seem to find any simple way of doing it. I have come up with a complicated-well-over-the-top way of copying files and using the concat task. While it's something that works, it's a ugly and I have a feeling of reinventing the wheel in rock. Upgrading ANT and/or installing optional tasks is an option (currently using ANT 1.5.1). Could someone point me in the right direction, please? <=3D Alex =3D>