ant-user mailing list archives

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

I have a properties file (new.properties) which contains key value pairs as
"prod.eg=1" "dev.eg=2" . I am trying to access the property from a ant build
file echo.xml by loading the property file in the script.

<?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}.executiongroups}"/> -----> does not work
</target>
</project>

ant -f echo.xml -Denv prod

Could anyone tell me what is the correct syntax to access the property?
-- 
View this message in context: http://ant.1045680.n5.nabble.com/echo-a-property-tp3239198p3239198.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