Hi,
This is indeed the expected behavior, getProperty() returns the raw
value, and getString() performs the interpolation.
Emmanuel Bourg
Giriraj Vengurleker a écrit :
I have a property file with an entry
INCA_BASE_DIR = C:\\Test1
And another property file which has
include=base.properties
OUTPUT_DIR=${INCA_BASE_DIR}\\DERIVED
If I use the following code then the property does not get substituted:
Configuration config = new PropertiesConfiguration(dprops);
System.err.println ("Property Value as read in the Java applicatiion is : "
+ (String)config.getProperty("OUTPUT_DIR") );
If I use config.getString() then it gives me the property with the
INCA_BASE_DIR substituted correctly.
Is this an expected behavior?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]