Hi there,
Using ant, how can I dynamically read a property file?
e.g.
<property prefix="myprop"
file="${base.dir}/config/properties/myprop.properties" />
so now to reference a property in that file
foo=bar
All I have to do is
<echo>${myprop.foo}</echo> // prints bar
however, I don't know how to do something like this
envAll=abc,def
abc=abhay
def=pradhan
now, say I pass in -Denv=abc, something like this, dosen't work..
<echo>${myprop.${env}.abc}</echo>
where ${env} can be either abc or def
am I doing something stupid?
cheers
Abhay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]