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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to