ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dave.alvar...@cartridgeorder.com>
Subject Re: Possible to dynamically reference a property?
Date Tue, 25 Jan 2011 21:58:27 GMT
Thanks, Dominique.  The nested properties (props) task seems like it will do the job.  However,
do you know where to download this thing?  The links don't seem to have anything

http://ant.apache.org/manual/properties.html
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property

 - Dave


>  -------Original Message-------
>  From: Dominique Devienne <ddevienne@gmail.com>
>  To: Ant Users List <user@ant.apache.org>, dave.alvarado@cartridgeorder.com
>  Subject: Re: Possible to dynamically reference a property?
>  Sent: Jan 25 '11 15:39
>  
>  On Tue, Jan 25, 2011 at 3:32 PM,  <dave.alvarado@cartridgeorder.com> wrote:
>  > Then I pass in this command line argument to my script "-Denv=...".  So, in my
ant script, how do I dynamically access a property using the ${env} param?  For example,
if "-Denv=dev" is passed in to the command line, what is a generic way of accessing the property,
"dev.baseurl"?
>  
>  See http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>  
>  Thanks, --DD
>  
>  ---------------------------------------------------------------------
>  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