Raja,
i tested it with a 1.7.0 ant version with this test file and everything
is working
<?xml version="1.0"?>
<project name="rajaTest" basedir=".">
<property name="API3" value="1"/>
<property name="dp.trgt.ref" value="API3"/>
<property name="dp.avd.name" value="1"/>
<macrodef name="creAVD">
<attribute name="aAVDTarget" default="${dp.trgt.ref}"/>
<attribute name="aAVDName" default="${dp.avd.name}"/>
<sequential>
<echo message="${API3}"/>
<echo message="@{aAVDTarget}"/>
<echo message="$...@{aavdtarget}}"/>
</sequential>
</macrodef>
<creAVD />
</project>
i didn't try with a previous ant version.
Could you try this and tell us if it is working?
Regards,
supareno
Hi,
We have a small macro
<macrodef name="creAVD">
<attribute name="aAVDTarget" default="${dp.trgt.ref}"/>
<attribute name="aAVDName" default="${dp.avd.name}"/>
<sequential>
<echo message="${API3}"/>
<echo message="@{aAVDTarget}"/>
<echo message="$...@{aavdtarget}}"/>
</sequential>
</macrodef>
When we run this the out put is
[echo] 1
[echo] API3
[echo] ${${dp.trgt.ref}}
where the expected one is at least
[echo] 1
[echo] API3
[echo] 1
Could any one tell me what I am missing on failing to see the 3 rd echo give
the right value though macro attribute double referencing. Even if the
double referencing fails, we need to get
[echo] ${API3} or some thing like that..
Wishing you all a Very Happy new year 2010. This forum has been of great
help to us in the year 2009.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejsoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org