ant-user mailing list archives

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

I have a properties file ( which contains key value pairs as
"" "" . 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=""/>
<echo message="${${env}.executiongroups}"/> -----> does not work

ant -f echo.xml -Denv prod

Could anyone tell me what is the correct syntax to access the property?
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message