Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27758 invoked from network); 4 Aug 2008 17:44:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Aug 2008 17:44:30 -0000 Received: (qmail 73339 invoked by uid 500); 4 Aug 2008 17:44:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73297 invoked by uid 500); 4 Aug 2008 17:44:26 -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 73284 invoked by uid 99); 4 Aug 2008 17:44:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 10:44:26 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 17:43:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KQ468-0007S3-Ce for user@ant.apache.org; Mon, 04 Aug 2008 10:43:56 -0700 Message-ID: <18816107.post@talk.nabble.com> Date: Mon, 4 Aug 2008 10:43:56 -0700 (PDT) From: srimh2o To: user@ant.apache.org Subject: Re: Split lines in input stream In-Reply-To: <18815844.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sriram@mh2o.com References: <18814904.post@talk.nabble.com> <18815844.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org If this is complicated is there any way I can insert a linebreak between Hello and World? srimh2o wrote: > > Ahh, this is verbatim, but you are correct. The \r\n does not substitute > for CRLF (0x0d, 0x0a). Then what I would like to do is somehow specify > Hello world and then get the output as: > Hello > World > > Any suggestions on how to do this? > > Thanks. > > > Scot P. Floess wrote: >> >> Is this verbatim? If so,, part of your problem is the literal characters >> \r and \n are note the escaped counterparts... >> >> Meaning if I had this: >> >> Hello r n World >> >> The r and the n are literals...and you'd see the same output as you are >> seeing now... >> >> >> >> On Mon, 4 Aug 2008, srimh2o wrote: >> >>> >>> Hi, >>> >>> I have a string input that contains carriage return "\r\n" and I'd like >>> to >>> use ant to split that input into two separate lines. This is what I do. >>> >>> Hello \r\n World >>> >>> >>> >>> >>> >>> I'd like the output to look like this: >>> Hello >>> World >>> >>> Instead i get this: >>> Hello \r\n World >>> >>> Please help. >>> >>> Thanks >>> -- >>> View this message in context: >>> http://www.nabble.com/Split-lines-in-input-stream-tp18814904p18814904.html >>> Sent from the Ant - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >>> >>> >> >> Scot P. Floess >> 27 Lake Royale >> Louisburg, NC 27549 >> >> 252-478-8087 (Home) >> 919-754-4592 (Work) >> >> Chief Architect JPlate http://sourceforge.net/projects/jplate >> Chief Architect JavaPIM http://sourceforge.net/projects/javapim >> >> Architect Keros http://sourceforge.net/projects/keros >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Split-lines-in-input-stream-tp18814904p18816107.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org