If you really need to use the property reference to property then I think
there is another ant task for that. The task allows you to build property
names from properties. Have you tried PopertyCopy ?
Hope this helps
-----Original Message-----
From: Ray Madigan [mailto:ray@madigans.org]
Sent: Sunday, September 10, 2006 12:41 PM
To: Ant Users List
Subject: RE: antcontrib:for
if I echo the @bar property like this
<target name='foo'>
<for param='bar' list='${${proj}}'>
<sequential>
<echo message='@{bar}'>
</sequential>
</for>
</target>
the result is: ${${proj}}
It doesn't look up the value of the inner ${proj}
and the ${} can't find a property for '${proj}'
-----Original Message-----
From: Rick Genter [mailto:rgenter@silverlink.com]
Sent: Sunday, September 10, 2006 8:46 AM
To: Ant Users List; Ant Users List
Subject: RE: antcontrib:for
Try ${${proj}}.
-----Original Message-----
From: Ray Madigan [mailto:ray@madigans.org]
Sent: Sun 9/10/2006 11:52 AM
To: Ant Users List
Subject: antcontrib:for
I have a target that I pass in a variable that I would like to fetch the
value of the property to us as the list parameter in a for tag.
<antcall target='foo'>
<param name='proj' value='foobar'>
</antcall>
<target name='foo'>
<!-- this gives me the name 'foobar' when I want the value of the property
'foobar' -->
<for param='bar' list='${proj}'>
<sequential>
...
</sequential>
</for>
</target>
Is this possible? any suggestions would be appreciated.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|