[configuration] Character position of key in file

2016-11-14 Thread Greg Torrance
I hope I'm not asking too many questions... I wonder if it is possible to determine the character/byte position of a particular key in a configuration file? My intent is to do a pre-pass of an XML configuration file in which certain configuration keys/values are replaced by other keys/values.

[configuration] Custom variable interpolation

2016-11-22 Thread Greg Torrance
Hi all, I would like to implement a custom variable interpolator that is specific to a Configuration object, but that also supports the standard prefixes (sys, const, env). What I mean by "specific to a Configuration object" is that the custom interpolator needs to know the Configuration to

Re: [configuration] Combined Configuration examples

2016-11-13 Thread Greg Torrance
way, if two elements have a set of attributes in common, if the values for those common attributes are the same, the elements will be considered to match.) Does that make sense? Is that correct? Thanks again for the reply. Greg On 11/13/2016 12:05 PM, Oliver Heger wrote: Hi Greg, Am 13.11.20

[configuration] Combined Configuration examples

2016-11-13 Thread Greg Torrance
Hi all, I am trying to work out the precise differences between OverrideCombiner, UnionCombiner, and MergeCombiner. However, the examples on this page (https://commons.apache.org/proper/commons-configuration/userguide/howto_combinedconfiguration.html) are confusing to me. testfile1.xml and

Re: [configuration] Combined Configuration examples

2016-11-13 Thread Greg Torrance
/2016 01:51 PM, Oliver Heger wrote: Hi Greg, Am 13.11.2016 um 18:41 schrieb Greg Torrance: Hi Oliver, Thanks for the reply. That is helpful! Hm, it looks as if the examples are partly incorrect. I assume that the channel with id="4" should not be part of testfile1.xml, but only be

Re: [configuration] Character position of key in file

2016-11-15 Thread Greg Torrance
Thanks for the detailed suggestions, Oliver. I appreciate it. I'll dig around a bit and give it some thought; you've given me a good head start. All the best, Greg On 11/15/2016 03:35 PM, Oliver Heger wrote: Hi Greg, Am 14.11.2016 um 22:34 schrieb Greg Torrance: Thanks Oliver. Regarding

Re: [configuration] Character position of key in file

2016-11-14 Thread Greg Torrance
, Oliver Heger wrote: Hi Greg, Am 14.11.2016 um 19:01 schrieb Greg Torrance: I hope I'm not asking too many questions... I wonder if it is possible to determine the character/byte position of a particular key in a configuration file? No, the original position from where data is read is not stored