I have a property file which is generated by my ant script itself during execution. And I want to access the value of properties from this generated property file.
For e.g.,
Generated Property File:
first.prop=abcd
second.prop=pqrs
and in script, I am trying to access it like this,
I am having a property name (that I want to access and is in generated property file) from some other property. That property is name.prop.
so,
<echo message="${name.prop}"/>
<echo message="${${name.prop}}"/>
gives
first.prop
${${name.prop}}
as output respectively.
What can be the solution over this?
This is from the doc:
So it is not available easily. Workarounds (using
<script />or<macrodef />can be found here in the official ant faq.