From user-return-41613-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Mar 04 22:40:30 2004 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 1461 invoked from network); 4 Mar 2004 22:40:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Mar 2004 22:40:30 -0000 Received: (qmail 36079 invoked by uid 500); 4 Mar 2004 22:39:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 36048 invoked by uid 500); 4 Mar 2004 22:39:59 -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 35995 invoked from network); 4 Mar 2004 22:39:59 -0000 Received: from unknown (HELO mxpostfix02.trusecureonline.com) (66.150.58.22) by daedalus.apache.org with SMTP; 4 Mar 2004 22:39:59 -0000 Received: from mxmta03 (unknown [10.15.1.5]) by mxpostfix02.trusecureonline.com (Postfix) with SMTP id 05467C810 for ; Thu, 4 Mar 2004 22:40:05 +0000 (UTC) Received: from host133.movielink.com [4.38.41.133] (EHLO oberon.digitaldist.net) by mxmta03 (mxl_mta-1.3.4-9) with ESMTP id 540b7404.8163.214.mxmta03; Thu, 04 Mar 2004 22:40:05 +0000 (UTC) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="===MXL-r1407375955-t1078440005-p0000004101-MXMTA03-MXL" Subject: echo "something" >> somefile Date: Thu, 4 Mar 2004 14:23:41 -0800 Message-ID: <01973B72692166439AD2931304E856C109E6B9@oberon.digitaldist.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: echo "something" >> somefile Thread-Index: AcQCNmUnzZ0Qo5kcQueCgAdkIF+xsgAABdYg From: "Matt Reason" To: X-Processed-By: MX Firewall Rebuild v1.49-1 X-MX-Spam: exempt X-MX-MAIL-FROM: X-MX-SOURCE-IP: [4.38.41.133] 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 --===MXL-r1407375955-t1078440005-p0000004101-MXMTA03-MXL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 I am trying get ant to do the exact equivalent of: echo "This is a line of text in a file" >> file.txt=20 Note that I am appending to the file. =20 I want a text file in my build directory that has two columns: Build_Number and Build_Date. Each time I do a build, I want to add one line to that file. =20 Ant keeps putting the output on the same line. A solution is to put a carriage return in the message itself, but that destroys my formatting - something that I am obsessive about. If I put the in the right (formatted) spot, then I get all the tabs in my output file (see below) =2E =20 Is there a way to append a single line at the end of a file? Or do I need to call exec? Why would echo in ant have been designed differently than echo in all other languages? =20 Thanks in advance, =20 Matt =20 ${buildNum} ${BuildDate}. =20 ${buildNum} ${BuildDate}. =20 ${buildNum} ${BuildDate}. =20 --===MXL-r1407375955-t1078440005-p0000004101-MXMTA03-MXL--