commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen" <da...@davidkarlsen.com>
Subject [configuration] Interpolation over several files, commons config 1.4
Date Mon, 20 Aug 2007 22:23:06 GMT
Hi!

I'm can use interpolation within a property file with success.
But I'd like to be able to spread this over several files.

F.ex:

prop1.properties:
var1=somevalue1
var2=somevalue2


prop2.properties
myvar1=${var1}
myvar2=${var2}

so that the resulting java.util.Properties would contain these values:
var1=somevalue1
var2=somevalue2
myvar1=somevalue1
myvar2=somevalue2


I can't get this to work - even with a CompoundConfiguration.

Any pointers?

TIA,
David

-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message