commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: [configuration] Issue using variable interpolation of system properties
Date Fri, 05 Jan 2007 19:27:41 GMT
Tom Muldoon wrote:
> I'm trying to use variable interpolation to resolve system properties
> with XMLConfiguration and/or PropertiesConfiguration and I'm coming up
> empty. Using the following property file ...
> 
> foobar=${foo}bar
> 
> ... and/or
> 
> foobar=${sys:foo}bar
> 
> ... does not work. In other words, the "foo" system property does not
> get resolved. Shouldn't it?
> 
> Thanks in advance, Tom
> 

Which version of Commons Configuration do you use?

The latter syntax with ${sys:foo} should work if you use a recent
nightly build (this feature was implemented just a few days ago).

Oliver

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


Mime
View raw message