Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99329 invoked from network); 8 Dec 2004 13:58:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 13:58:08 -0000 Received: (qmail 98635 invoked by uid 500); 8 Dec 2004 13:57:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98565 invoked by uid 500); 8 Dec 2004 13:57:13 -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 98515 invoked by uid 99); 8 Dec 2004 13:57:13 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_60_70,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dnsinet.rzf-nrw.de (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 05:57:11 -0800 Received: from z011100.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id iB8Dv47j012756 for ; Wed, 8 Dec 2004 14:57:04 +0100 Received: from z011104.bk.fin.local ([130.11.7.104]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Wed, 8 Dec 2004 14:57:06 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Wed, 8 Dec 2004 14:57:05 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23F95E@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: Extract property out of multiline file Date: Wed, 8 Dec 2004 14:56:50 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4DD2D.C42E9330" X-OriginalArrivalTime: 08 Dec 2004 13:57:06.0031 (UTC) FILETIME=[CD449FF0:01C4DD2D] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4DD2D.C42E9330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry, havent seen the comma after each line. Simply use replace=3D"". Jan > -----Urspr=FCngliche Nachricht----- > Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] > Gesendet am: Mittwoch, 8. Dezember 2004 14:47 > An: Ant Users List > Betreff: RE: Extract property out of multiline file >=20 >=20 > Hi, thanks for the tip, nearly perfect. >=20 > With=20 >=20 > Env1, > Env2, >=20 > and=20 > flags=3D"g" > replace=3D","/> >=20 > it gives me -> Env1,,Env2,, >=20 > without flags=3D"g" >=20 > it gives me -> Env1,,Env2, >=20 > The second ',' between the Env's and the last ',' after Env2=20 > shouldn't appear. > then it would be perfect. >=20 > Any hints ? >=20 > Regards, Gilbert >=20 >=20 > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: Wednesday, December 08, 2004 2:31 PM > To: user@ant.apache.org > Subject: AW: Extract property out of multiline file >=20 >=20 > Just a thought ... >=20 > > > > > flags=3D"g" > replace=3D","/> > > > >=20 >=20 > Jan >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] > > Gesendet am: Mittwoch, 8. Dezember 2004 14:21 > > An: ant_user (E-Mail) > > Betreff: Extract property out of multiline file > >=20 > >=20 > > Hi, i have a txtfile generated by a script. > >=20 > > The file looks like that : > >=20 > > Env1, > > Env2, > > Env3, > >=20 > > sometimes there's only one value in that file, sometimes > > more, like above. > >=20 > > I want to stript the ',' and get that Env's into one property : > >=20 > > myproperty =3D "Env1,Env2,Env3" > >=20 > > How to do that without scripting ? > >=20 > > Thanks for any hints!! > >=20 > > Regards, Gilbert > >=20 > >=20 > >=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 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 ------_=_NextPart_001_01C4DD2D.C42E9330--