Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95756 invoked by uid 500); 27 Jul 2003 22:39:46 -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 95719 invoked from network); 27 Jul 2003 22:39:45 -0000 Received: from law10-oe48.law10.hotmail.com (HELO hotmail.com) (64.4.14.20) by daedalus.apache.org with SMTP; 27 Jul 2003 22:39:45 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 27 Jul 2003 15:39:52 -0700 Received: from 24.34.177.222 by law10-oe48.law10.hotmail.com with DAV; Sun, 27 Jul 2003 22:39:52 +0000 X-Originating-IP: [24.34.177.222] X-Originating-Email: [mgainty@hotmail.com] From: "Martin Gainty" To: "Ant Users List" References: <8B4A710A4FF0E8449E1066277C45C58E93A4@Fenris> Subject: Re: Carriage-returns in files ends up as "0D 0D 0A" Date: Sun, 27 Jul 2003 18:40:02 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 27 Jul 2003 22:39:52.0704 (UTC) FILETIME=[FEB81800:01C3548F] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The why could relate to the fact that most Windows Editors terminate their lines with 0D0A And most Unix editors terminate their lines with 0D The easiest solution is to write a Quick and Dirty Java app that reads each line and scans for aberrant line endings (0D 0D 0A) and replace the normal terminator (0D 0A) Tak, -Martin ----- Original Message ----- From: "Morten Mortensen" To: "'Ant Users List'" Sent: Sunday, July 27, 2003 12:34 PM Subject: Carriage-returns in files ends up as "0D 0D 0A" Hi All, I experience problems with carriage-returns in files! I want to read a multi-line text-file into a property with task "loadfile", then replace this set of line into another multi-line-text-file at a certain spot in the file using the task "replace". That is, I want to replace a string within one file with the content of another file. Within the final file, all carriage-returns between the lines from the first file ends up as the sequence "0D, 0D, 0A" (have I seen by doing a binary dump with a tool). So the problem is with the carriage-returns from the file read by "loadfile". As is, I can not use the generated file. The file read by "loadfile" originally does contain "0D, 0A", not "0D, 0D, 0A" (binary dump again). I am using "Apache Ant version 1.5.3 compiled on April 9 2003" on a Windows system. Why is this? Kind regards, Morten Sabroe Mortensen TietoEnator A/S, Ved Lunden 12, 8230 �byh�j, Danmark mailto:Morten.Mortensen@tietoenator.com http://www.tietoenator.com --------------------------------------------------------------------- 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