ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ext-simon.stei...@nokia.com>
Subject RE: Find a properties location
Date Wed, 12 Nov 2008 15:22:28 GMT
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
> 
> Properties are a String-String-Mapping.
> Quasi a
>   Hashtable<String,String> properties = ...
> The name works as key.
> The value is set by
>   <property .. value=""/> : to the string value
>   <property .. location=""/> : to the absolute path (again as String) of
> that location.
> 
> 
> Jan
> 
> >-----Urspr√ľngliche 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
> >
> >
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message