From user-return-70397-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue May 11 05:31:48 2010 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14876 invoked from network); 11 May 2010 05:31:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 05:31:48 -0000 Received: (qmail 12328 invoked by uid 500); 11 May 2010 05:31:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12186 invoked by uid 500); 11 May 2010 05:31:47 -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 12174 invoked by uid 99); 11 May 2010 05:31:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 05:31:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 05:31:37 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.4/8.14.4) with ESMTP id o4B5VGCd008923 for ; Tue, 11 May 2010 07:31:16 +0200 Received: from z011102.bk.fin.local ([130.11.7.102]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 May 2010 07:31:16 +0200 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011102.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 May 2010 07:31:16 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Getting Property Key from Value Date: Tue, 11 May 2010 07:31:16 +0200 Message-ID: <9EE86F1965E19E499C80DE52AC807B5505171BFA@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Getting Property Key from Value Thread-Index: AcrwenmLJW6nIUxrSDed/qxtFhBAUAAT8eRQ References: From: To: X-OriginalArrivalTime: 11 May 2010 05:31:16.0648 (UTC) FILETIME=[2D894A80:01CAF0CB] X-Virus-Checked: Checked by ClamAV on apache.org Not with built-in tasks. You could write your own task for that. But dont forget that you can retrieve multiple keys for one value: hostname=3Dgold material=3Dgold While the keys are unique values arent. So your task would return a list For implementing see the tutorial http://ant.apache.org//manual/tutorial-writing-tasks.html http://ant.apache.org//manual/tutorial-tasks-filesets-properties.html For using see http://ant.apache.org/antlibs/antunit/index.html Jan >-----Urspr=FCngliche Nachricht----- >Von: Jan [mailto:raghurefer@gmail.com]=20 >Gesendet: Montag, 10. Mai 2010 21:53 >An: Ant Users List >Betreff: Getting Property Key from Value > >Hi All, > >Is there any way using ant to get the Property Key from value ? > >For examble lets say i have file "name.properties" and in it i=20 >have entry >like "hostname=3Dgold", now i want to parse "name.properties"=20 >get the key of >value "gold" means reverse read of property, is this possible=20 >using ant? > >Any ideas? > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org