You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Mark Chaimungkalanont <ma...@atlassian.com> on 2005/05/12 07:59:54 UTC
Turning off interpolation in commons configuration?
Hi there,
From checking out some of the code, I'm guessing that the answer is no. Nevertheless,
does anyone know if there is a way to turn off interpolation of variables in the getString
method of the PropertiesConfiguration object?
Many thanks
Mark C
-------------------------------------
ATLASSIAN - http://www.atlassian.com/
Confluence - the enterprise wiki - tried it yet?
http://www.atlassian.com/confluence/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: Turning off interpolation in commons configuration?
Posted by Emmanuel Bourg <eb...@apache.org>.
Hello Mark, I confirm you cannot disable this interpolation. I filed Bug
34887 to record your request, we'll try to include this feature in the
next release (1.2). You can work around this issue by subclassing
PropertiesConfiguration and overwriting the protected method
interpolate(String) to return immediately the string specified.
Emmanuel Bourg
Mark Chaimungkalanont wrote:
> Hi there,
>
> From checking out some of the code, I'm guessing that the answer is no.
> Nevertheless, does anyone know if there is a way to turn off
> interpolation of variables in the getString method of the
> PropertiesConfiguration object?
>
> Many thanks
>
> Mark C
>
> -------------------------------------
> ATLASSIAN - http://www.atlassian.com/
>
> Confluence - the enterprise wiki - tried it yet?
> http://www.atlassian.com/confluence/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org