Re: [configuration] reading full text of PropertiesConfiguration file in 2.0

2016-11-14 Thread Robert V Sasseen
Didn't subscribe to list, found Oliver's kind reply on the archive site, don't know how to reply to that directly, so I'm replying to my original message. Oliver's suggestion worked fine, 2.0 code is: FileBasedConfigurationBuilder builder = new

Re: [configuration] Combined Configuration examples

2016-11-14 Thread Aaron Gadberry
Thanks Oliver! On Mon, Nov 14, 2016 at 3:24 PM, Oliver Heger wrote: > Hi Aaron, > > Am 14.11.2016 um 18:38 schrieb Aaron Gadberry: > > Hi All, > > > > A follow up question. Is there a way to view the combined XML? I am > > constantly missing elements not knowing

Re: [configuration] Character position of key in file

2016-11-14 Thread Greg Torrance
Thanks Oliver. Regarding the Configuration API, is it possible to replace not just values but keys, too? For example, could I replace with Some Value If so, can you suggest what class to look at first (for accomplishing this)? Thanks, Greg On 11/14/2016 04:27 PM,

Re: [configuration] Character position of key in file

2016-11-14 Thread Oliver Heger
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 in the

Re: [configuration] Combined Configuration examples

2016-11-14 Thread Oliver Heger
Hi Aaron, Am 14.11.2016 um 18:38 schrieb Aaron Gadberry: > Hi All, > > A follow up question. Is there a way to view the combined XML? I am > constantly missing elements not knowing if it is my paths or my original > files or the combiner. what you could do is to copy the combined

[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.

Re: [configuration] reading full text of PropertiesConfiguration file in 2.0

2016-11-14 Thread Oliver Heger
Hi Robert, Am 12.11.2016 um 03:47 schrieb Robert V Sasseen: > Is there a straightforward way to get the full text of the properties file > from a PropertiesConfiguration object in 2.0? In 1.x I could do > > > PropertiesConfiguration propertiesConfiguration = new >

[configuration] reading full text of PropertiesConfiguration file in 2.0

2016-11-14 Thread Robert V Sasseen
Is there a straightforward way to get the full text of the properties file from a PropertiesConfiguration object in 2.0? In 1.x I could do PropertiesConfiguration propertiesConfiguration = new PropertiesConfiguration("my.properties"); URL url =