ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ritchie <ganesh.devaraj...@baml.com>
Subject Re: echo a property
Date Wed, 27 Oct 2010 20:44:29 GMT

I am sorry that was  a typo when i posted it. That was not the problem.

My properties file- new.properties contains.

prod.eg=1
dev.eg=2

I am trying to access these properties in a echo.xml file

<?xml version="1.0" encoding="UTF-8"?> 
 <project name= "echo" default="echoeg"> 
 <property name="env" value="${env}"/> 
 <target name="echoeg" description=""> 
 <property file="new.properties"/> 
 <echo message="${${env}.eg}"/> -----> does not work 
 </target> 
 </project>  
>From command line i do this.
 ant -f echo.xml -Denv= prod 

I expect the echo to display 1. It does not happen. How else can i access
that value?
-- 
View this message in context: http://ant.1045680.n5.nabble.com/echo-a-property-tp3239198p3239475.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message