Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24360 invoked from network); 12 Nov 2008 15:29:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2008 15:29:27 -0000 Received: (qmail 76990 invoked by uid 500); 12 Nov 2008 15:29:33 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76448 invoked by uid 500); 12 Nov 2008 15:29:31 -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 76437 invoked by uid 99); 12 Nov 2008 15:29:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 07:29:31 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.100.122.230] (HELO mgw-mx03.nokia.com) (192.100.122.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 15:28:13 +0000 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx03.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id mACFMENe030035 for ; Wed, 12 Nov 2008 17:22:35 +0200 Received: from vaebh102.NOE.Nokia.com ([10.160.244.23]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Nov 2008 17:22:30 +0200 Received: from vaebe103.NOE.Nokia.com ([10.160.244.58]) by vaebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Nov 2008 17:22:29 +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: RE: Find a properties location Date: Wed, 12 Nov 2008 17:22:28 +0200 Message-ID: In-Reply-To: <9EE86F1965E19E499C80DE52AC807B5501B6F6E7@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Find a properties location Thread-Index: AclE03HkD7MOox2YTSCaHOz3yGcQZAABRxqAAABdCyA= References: <9EE86F1965E19E499C80DE52AC807B5501B6F6E7@z011021.bk.fin.local> From: To: X-OriginalArrivalTime: 12 Nov 2008 15:22:29.0994 (UTC) FILETIME=[7A2A94A0:01C944DA] X-Nokia-AV: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hi, I not looking for the value of the property but where in the = configuration it is defined. The org.apache.tools.ant.Target class has a method: getLocation(), can I = get the same sort of thing for properties. Thanks > -----Original Message----- > From: ext Jan.Materne@rzf.fin-nrw.de = [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: 12 November 2008 15:11 > To: user@ant.apache.org > Subject: AW: Find a properties location >=20 > Properties are a String-String-Mapping. > Quasi a > Hashtable properties =3D ... > The name works as key. > The value is set by > : to the string value > : to the absolute path (again as = String) of > that location. >=20 >=20 > Jan >=20 > >-----Urspr=FCngliche Nachricht----- > >Von: ext-simon.steiner@nokia.com [mailto:ext-simon.steiner@nokia.com] > >Gesendet: Mittwoch, 12. November 2008 15:32 > >An: user@ant.apache.org > >Betreff: Find a properties location > > > >Hi, > > > >How can I find out where a property is defined, which ant file? > > > >I would like: > >project.getProperty("helium.dir").file() > > > >or: > >project.getProperty("helium.dir").location() > > > >Thanks > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >For additional commands, e-mail: user-help@ant.apache.org > > > > >=20 > --------------------------------------------------------------------- > 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