ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <prash...@pramati.com>
Subject Re: Two-level property names
Date Mon, 20 Aug 2007 09:49:32 GMT
May be a strategy like this will be of use :
http://blogs.sun.com/geertjan/entry/p_img_src_http_blogs

-Prashant
On Mon, 2007-08-20 at 11:36 +0200, Krzysztof KucybaƂa wrote:
> Hi,
> 
> I just wanted to know if there is a possibility to achieve something
> like this in Ant:
> 
> -> I have a set of names that identify different deployment 
> environments. say these are unit, dev, intern for now.
> 
> -> I have a set of properties for each of these, all in one property 
> file (wouldn't be a problem to split into multiple for a good reason),
> for example dev.url, dev.deploypath, dev.dbserver, etc.
> 
> -> what I'd like is to have a property called ${env} for the different 
> names, and use the others in the following fashion: ${${env}.url}, 
> ${${env}.deploypath} etc. Is it possible? Do I need anything more than 
> just ant to achieve this (like ant-contrib perhaps)?
> 
> Thanks for any help,
> Best regards,
> Krzysztof
> 
> ---------------------------------------------------------------------
> 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