SunScorpio19
SunScorpio19

Reputation: 19

How to retrieve a value of a variable which is itself a value of another variable in ant script?

In ant script, I receive value def when called as ${abc} but not the value xyz when called as ${${abc}}.

The property file which script calls has values listed as below:

abc = def def = xyz

Any idea how could a value of variable be used as a variable itself in ant script?

Upvotes: 0

Views: 105

Answers (1)

Rebse
Rebse

Reputation: 10377

See Ant FAQ "Double expanding the property"

Upvotes: 1

Related Questions