Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14063 invoked from network); 6 Jul 2004 06:00:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jul 2004 06:00:23 -0000 Received: (qmail 71654 invoked by uid 500); 6 Jul 2004 06:00:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 71410 invoked by uid 500); 6 Jul 2004 06:00:11 -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 71231 invoked by uid 99); 6 Jul 2004 06:00:10 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_50_60,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 05 Jul 2004 23:00:08 -0700 Received: from z011104.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 i665xbZY023984 for ; Tue, 6 Jul 2004 07:59:37 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id <3HZQFZHZ>; Tue, 6 Jul 2004 07:57:44 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23F2D9@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: AW: Extracting key,value from a property Date: Tue, 6 Jul 2004 07:59:38 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4631E.6BD4BF90" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4631E.6BD4BF90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hadnt worked? Jan > -----Urspr=FCngliche Nachricht----- > Von: MCG QA [mailto:mcgqa@yahoo.com] > Gesendet am: Dienstag, 6. Juli 2004 00:54 > An: Ant Users List > Betreff: Re: AW: Extracting key,value from a property >=20 > Thank Jan, >=20 > I wanted to acccess "AuthorAddressEntityBean" as > ${key}. Had little hard time with , > esp. the parameter regexp, but ultimately I could > split the ${key} and ${value}. Thanks for your inputs. > Here is what I did. >=20 > =20 > srcFile=3D"c:/temp/envs.txt"/> > param=3D"cur-ejb-value-loc" target=3D"loop-target"> > > =20 > =09 > > input=3D"${cur-ejb-value-loc}" > regexp=3D"([^@]*)" > select=3D"\0" > casesensitive=3D"false" /> > =20 > input=3D"${cur-ejb-value-loc}" > regexp=3D"([^@.]*$)" > select=3D"\0" > casesensitive=3D"false" /> > Complete String : ${cur-ejb-value-loc} > ejb-name : ${ejb.name} =09 > ejb-location : ${ejb.value} =20 > >=20 >=20 > I modified the property file env.txt which contains > values as under: >=20 > AuthorAddressEntityBean@c:/temp >=20 >=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > --- Jan.Materne@rzf.fin-nrw.de wrote: > > If you only want to have the properties loaded > > simply use > file=3D""/>. > >=20 > > If you want to access the "AuthorAddressEntityBean" > > as ${key} simply split > > the=20 > > value. > > - using AntContribs > > - using