Re: How to enter string ',' in configuration file in Commons Configuration?

2007-08-13 Thread Oliver Heger
ying lcs wrote: Hi, In my configuration xml file, I have: myconfigvalue1, value2, value3/myconfig but after I read it, I only get the value 'value1'. Everything after the first ',' looks like gone. how can I make Commons Configuration so that it does not strip out everything after

Re: [commons-configuration] - overloading a properties configuration - solved

2007-09-04 Thread Oliver Heger
Wabner, Thomas (EXT) wrote: Hi again, I have solved this problem for myself. After reading the complete documentation I have found the ConfigurationUtils#copy() method. This method does what I want ;-) - waffel Hello, ConfigurationUtils#copy() is certainly a good solution for simple use

Re: [StrSubstitutor] Can StrSubstitutor be used without a prefix or suffix?

2007-09-10 Thread Oliver Heger
James Watkin wrote: I'd like to use org.apache.commons.lang.text.StrSubstitutor without a suffix requirement for the replacement targets, but it doesn't seem to support that. Is that correct? Although the doc for org.apache.commons.lang.text.StrSubstitutor disallows a null prefix or suffix

Re: [ configuration ] setting top-level attributes

2007-09-18 Thread Oliver Heger
Bond - James D. wrote: Hopefully this is a simple one. I have a semi-non-standard xml file that has attributes in the Top-level element and I'm not able to set the attributes on it. How would I do that with XMLConfiguration? I tried the following but it didn't work:

Re: [ configuration ] setting top-level attributes

2007-09-22 Thread Oliver Heger
Oliver Heger wrote: Bond - James D. wrote: Bond - James D. wrote: Hopefully this is a simple one. I have a semi-non-standard xml file that has attributes in the Top-level element and I'm not able to set the attributes on it. How would I do that with XMLConfiguration? I tried the following

Re: [configuration] setDelimiterParsingDisabled doesn't work withd DefaultConfigurationBuilder

2007-09-28 Thread Oliver Heger
Sabine Schwanitz wrote: Hi, when I'm trying to disableListDelimiter in DefaultConfigurationBuilder, this is ignored. I just started working with apache.commons.configuration so maybe I did something wrong? So far I declared in my config.xml .. properties filename=test.properties/ properties

Re: [configuration] setDelimiterParsingDisabled doesn't work withd DefaultConfigurationBuilder

2007-10-02 Thread Oliver Heger
Sabine Schwanitz wrote: Oliver Heger schrieb: Hi Oliver, thanks for responding. I was already thinking about disabling the mode in the configuration file, unfortunately that does not work: Here is my complete config-file: properties fileName=ShopMessageResources.properties

[ANNOUNCEMENT] Commons Configuration 1.5 Released

2007-11-24 Thread Oliver Heger
can be found at the Configuration main site at http://commons.apache.org/configuration/ The changes report contains a list with all changes since the last release and is available at http://commons.apache.org/configuration/changes-report.html Oliver Heger on behalf of the Commons community

Re: [Configuration] getList returns an empty list if the underlying configuration file is touched

2007-12-05 Thread Oliver Heger
Tom Muldoon wrote: Hi, I'm running into a problem in which the getList operation returns an empty List if and when the underlying configuration file is updated (I am leveraging the FileChangedReloadingStrategy). I am using Commons Configuration 1.4 with the DefaultConfigurationBuilder in

Re: Commons Configuration Spice Group

2007-12-08 Thread Oliver Heger
Barb Cochrane wrote: Hello, In Commons Configuration 1.2, MockStaticMemoryInitialContextFactory.java carries a different copyright and license than the rest of the files in that package: * Copyright (C) The Spice Group. All rights reserved. * * This software is

Re: [Commons Configuration] XML Schema support, and other questions

2007-12-11 Thread Oliver Heger
Hi, comments inline... Spies, Brennan wrote: Hi all, I am considering using Commons Configuration for my project, but am not sure if I would be able to do the type of configuration that I want. Some background: I am writing a project that uses two sources of configuration, LDAP

Re: Adding nodes in an XMLConfiguration, but not at the end

2007-12-19 Thread Oliver Heger
Thorsten Lampe wrote: Is there any way of adding a piece of configuration (i.e. an element) not to the END of a list as can be done with something like (cp. website examples) // Add new table tasks with name element and type attribute config.addProperty(tables table/name, tasks); but

Re: configuration-Properties: cannot define a property based upon another one

2007-12-22 Thread Oliver Heger
Konstantinos Pachopoulos wrote: Hi, Given a properties file, which contains this: --- b = asd a = ${b}safk --- I -when reading property 'a'- get ${b}safk. This is the program i use for reading the properties: - import java.io.*;

Re: [configuration] SQL query falsely read from properties file

2008-01-08 Thread Oliver Heger
Note: Please prefix the subjects of your postings with the name of the affected component because this is a shared list. Comments below. Konstantinos Pachopoulos wrote: Hi, i am reading an SQL query from a properties file and turning into a PreparedStatement. The line from the properties

Re: [configuration] Config + Digester NoSuchMethodException

2008-01-28 Thread Oliver Heger
[EMAIL PROTECTED] schrieb: This is only happening on one box and I can't figure out why because every other box with (seemingly) the same jar files is working just fine. org.apache.commons.configuration.ConfigurationException: SAX Exception caught at

Re: [configuration] Config + Digester NoSuchMethodException

2008-01-29 Thread Oliver Heger
Simon Kitching schrieb: [EMAIL PROTECTED] schrieb: Quoting Oliver Heger [EMAIL PROTECTED]: [EMAIL PROTECTED] schrieb: Quoting Oliver Heger [EMAIL PROTECTED]: [EMAIL PROTECTED] schrieb: This is only happening on one box and I can't figure out why because every other box

Re: Whitespace in XML configuration file

2008-02-04 Thread Oliver Heger
Jörg Schaible schrieb: Hi Oliver, Oliver Heger wrote: Ricardo Espírito Santo schrieb: I've tried xml:space=preserve and still no luck. Yes, this special attribute is not yet supported. If you like, you can open a new ticket in our bug tracking system [1] and enter an enhancement request

Re: [Configuration]: Classpath resource in composite configuration

2008-02-20 Thread Oliver Heger
[EMAIL PROTECTED] schrieb: I am using commons configuration ver. 1.2. I would like ot define a composite configuration in which one or more items are classpath resources as in: configuration properties fileName=usergui.properties/ xml fileName=classpath:/gui.xml/

Re: commons-configuration XMLConfiguration get attributes with XPathExpressionEngine

2008-02-26 Thread Oliver Heger
Christian Migowski schrieb: Hi, how can I use XPathExpressionEngine to get a list of XML attributes? It seems like i cannot get it working, here is an easily reproducable example. Given the XML file simple.xml: ?xml version=1.0 encoding=UTF-8? bsmpools Pool id=eins NameName 1/Name /Pool Pool

Re: [Commons-Configuration]: Nested macro property replacement

2008-02-28 Thread Oliver Heger
[EMAIL PROTECTED] schrieb: I am using the latest commons configuration with JDK1.6. Could I do the following property replacement using the PropertyConfigufrator? propA=value1 propB=value2 propA.value2.custom=111 prop.custom=${propA.${propB}.custom} Thanks! /U I think, this is not

Re: No javadoc or source downloads

2008-03-02 Thread Oliver Heger
Dennis Lundberg schrieb: Parks, Bill (CDC/CCHIS/NCPHI) wrote: Please add javadoc and source downloads for version 1.5. The files on the ibiblio site are corrupt. You might want to contact ibiblio about that. All Apache artifacts are deployed to the central repository, ibiblio is just a

Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?

2008-04-08 Thread Oliver Heger
Gavin Eadie schrieb: On Apr 6, 2008, at 4:42 PM, Emmanuel Bourg wrote: Try using ConfigurationBuilder instead of ConfigurationFactory, you shouldn't have this exception. I get it with the following: try { DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();

Re: commons-configuration XMLConfiguration save pretty-printed

2008-04-23 Thread Oliver Heger
Christian Migowski schrieb: Hello, is there a way of saving a XMLConfiguration pretty-printed, i.e. with indentions, without empty lines...? I think i could get the Document and then save it by myself using e.g. an jdom XMLOutputter, but i would be interested to know if there is a

Re: escaped character

2008-05-02 Thread Oliver Heger
Ken wrote: hi, i'm using Commons Configuration for properties files. a line in my file is ps = / after and saved, it change to ps = \/, Is there a way to keep it for ps = / Thanks Ken Ken, with Commons Configuration 1.5 on Windows I am unable to reproduce this problem. The slash is

Re: escaped character

2008-05-03 Thread Oliver Heger
(); } catch (ConfigurationException e) { e.printStackTrace(); } } } --end-- Oliver Heger wrote: Ken wrote: hi, i'm using Commons Configuration for properties files. a line in my file is ps = / after and saved, it change to ps = \/, Is there a way to keep

Re: [Configuration] Call me a moron, but I just can't make it work!

2008-07-14 Thread Oliver Heger
[EMAIL PROTECTED] schrieb: Michael Robinson schrieb: Hi, I'm writing a program that must load, search, edit and save Mac OS X plist files. I was attempting to use apple's NS* foundation classes, but I couldn't work out how to write to the plist files (maybe I'm just stupid). I searched

Re: Saving and loading gui form data

2008-08-24 Thread Oliver Heger
Brian McCloud schrieb: I've been looking for a library to load and save gui form data (such as for an options dialog). I might be able to subclass DynaBean (from the BeanUtils library) to make an aggregate DynaBean that encapsulates bean properties from several other objects, and use the

Re: [Commons Configuration] Setting up a Java application reading a file Properties.

2008-08-29 Thread Oliver Heger
Pierre8rou schrieb: Hello, I'd like to set up a Java application reading a file Properties. I think achieve this by filling a class Params and OtherParams classes. I think using Apache Commons Configuration. How to write my file Properties? How to read the file properties to fill Params class

Re: [Commons Configuration] Why this Java code rise a Exception ?

2008-09-02 Thread Oliver Heger
Pierre8rou schrieb: Hello, Why this Java code rise a Exception in thread main java.lang.NoClassDefFoundError ? Thanks, Pierre8r As was already pointed out by others on this thread, Commons Configuration requires some other Commons libraries. Detailed information about which libraries you

Re: [configuration] Brackets in key for property file causes exception

2008-09-27 Thread Oliver Heger
First of all, please prefix the subject with the name of the component you are interest in (as I have done now) because this is a shared list. Response below. Pavel Savara schrieb: Hi, When we use brackets in property key we get an exception every time. Escaping brackets with \ doesn't help

Re: [configuration] Swing components for Commons Configuration?

2008-10-09 Thread Oliver Heger
Mark Fortner schrieb: I was wondering if anyone knows of a set of Swing components that could be used with Commons Configuration? I have an application that has accumulated configuration information in XML files and properties files. I'd like to access this information from a single user

Re: [configuration] Swing components for Commons Configuration?

2008-10-13 Thread Oliver Heger
] https://appframework.dev.java.net/ On Thu, Oct 9, 2008 at 1:14 PM, Oliver Heger [EMAIL PROTECTED]wrote: Mark Fortner schrieb: I was wondering if anyone knows of a set of Swing components that could be used with Commons Configuration? I have an application that has accumulated configuration

Re: [CONFIGURATION] FileChangedReloadingStrategy inside combined configuration

2008-10-15 Thread Oliver Heger
Pavel Savara schrieb: Hi, I have properties configuration file with FileChangedReloadingStrategy inside combined configuration. It doesn't seem to reload automaticaly when file changes. I have to go and call reload() on that configuration in code (((PropertiesConfiguration) conf).reload();)

Re: [Configuration] Bug with XMLConfiguration and getString() ...?!

2008-10-29 Thread Oliver Heger
Jörg Schaible schrieb: Grimm, Markus wrote: Hi guys, I've got the following problem: I've got a xml-config-file with that content: ?xml version=1.0 encoding=UTF-8? config ... sftp hostmyhost/host port22/port usertestuser/user

Re: [Configuration] Bug with XMLConfiguration and getString() ...?!

2008-10-30 Thread Oliver Heger
); String pass = xml_config.getString(sftp.pass); xml_config.setDelimiterParsingDisabled(false); return pass; } } and the result of pass: 08 !!! What's wrong ??? Thanks, Markus -Ursprüngliche Nachricht- Von: Oliver Heger [mailto:[EMAIL

Re: Commons Configuration 1.5 User Guide

2008-11-25 Thread Oliver Heger
Brian Boyle schrieb: Hello, I was wondering if anyone knew if there is an up-to-date user guide for the 1.5 version of Commons Configuration. There is a user guide for 1.2 on the website but I cannot find any examples of how to use the 1.5 release. There seems to be quite a few nice features in

Re: Commons Configuration - Saving a combined configuration

2008-11-26 Thread Oliver Heger
Brian Boyle schrieb: Hi there, I am using the OverrideCombiner class to combine two XMLConfigurations together. This works fine and then I set this combined configuration as the RootNode of a new XMLConfigruation. I am then trying to save this newly created configuration as a new file and this

Re: Commons Configuration - Saving a combined configuration

2008-11-26 Thread Oliver Heger
CombinedConfiguration cc = new CombinedConfiguration(new OverrideCombiner()); cc.addConfiguration(masterConf); cc.addConfiguration(localConf); XMLConfiguration result = new XMLConfiguration(cc); result.save(...); Oliver On Wed, Nov 26, 2008 at 9:04 PM, Oliver Heger [EMAIL PROTECTED

Re: Configuration Automatic Reloading

2008-11-26 Thread Oliver Heger
gz.lyn schrieb: Hi, It seems changing the content of a included property file would not affect Config file Automatic Reloading? Or did I missed some steps? Thanks for answering, Jimmy Can you provide a short code fragment demonstrating how you setup your configuration? Oliver

Re: Configuration Automatic Reloading

2008-11-28 Thread Oliver Heger
/configuration/userguide/howto_configurationbuilder.html#Using_DefaultConfigurationBuilder On Thu, Nov 27, 2008 at 3:02 PM, Oliver Heger [EMAIL PROTECTED]wrote: gz.lyn schrieb: Hi, It seems changing the content of a included property file would not affect Config file Automatic Reloading

Re: Maven, commons-configuration:commons-configuration:1.6

2009-02-04 Thread Oliver Heger
jie...@gmail.com schrieb: Re: http://www.mail-archive.com/user@commons.apache.org/msg02588.html Can someone please release this to the Maven repository? Thank you. :-) -jesse It has now been deployed: http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.6/ Oliver

Re: commons-config : property key's with whitespace

2009-03-10 Thread Oliver Heger
Andrew Hughes schrieb: Howdy, We've got legacy/shared property files for our config (i.e. can't change the property files to solve this). We're trying to use commons-config but it has difficulty dealing with our properties files as the key's contain whitespace. Any help on how I can resolve

Re: [commons-configuration] XMLConfiguration XPathExpressionEngine saving Lists error

2009-03-24 Thread Oliver Heger
Christian Migowski schrieb: Hi, is this considered a bug: If I load a list with commons-configuration, then add new entries to that list and try to save it back to file, I get a java.lang.IllegalArgumentException: prepareAdd: Passed in key must contain a whitespace! exception. If I do not

Re: Commons XMLConfiguration Issue --XPath query with /root

2009-03-25 Thread Oliver Heger
bnreddy schrieb: Hi christian, From my understanding (correct me if I am wrong)... The root element is ignored when constructing keys. but this is when XMLConfiguration is using DefaultExpressionEngine Is root element ignored even when the XPathExpressionEngine is being used by

Re: How to avoid escape characters

2009-03-30 Thread Oliver Heger
Juan Medín Piñeiro schrieb: Hi, Do you know how you can avoid to escape characters using Commons Configuration ? I'm trying to save a config file with file paths -to be read by a different application- and every time a / character appears for directories, it escapes it as \/. Thanks in

Re: [commons-config]: setting listdelimiters

2009-03-31 Thread Oliver Heger
Michiel Kalkman schrieb: Hi all, It is possible to change the delimiters for lists in configurations using AbstractConfiguration::setDelimiterParsingDisabled() or AbstractConfiguration::setDefaultListDelimiter(). But this is in code. Can someone tell me whether it is possible to provide the

Re: [DatabaseConfiguration] a problem with the removal of properties

2009-06-09 Thread Oliver Heger
First, this is the wrong list. issues@ is used for automatic messages of our bug tracking system. Please use u...@commons.apache.org. Further comments below. LiquidLen schrieb: I am using a CompositeConfiguration and a DatabaseConfiguration (it is a member of the CompositeConf). I use the

Re: [CONFIGURATION] Configuration Interpolates when Web Application is run directly under Glassfish, but not when debugging under Eclipse

2009-09-02 Thread Oliver Heger
Hi Andrew, what you describe seems really complicated. I am not sure whether I fully understand the problem, but I hope at least to give you some hints. Comments inline... Andrew Thorburn schrieb: This is something that doesn't make an awful lot of sense to me: I've got a web application

Re: [CONFIGURATION] Help with optional XML file in override section of configuration builder.

2009-09-14 Thread Oliver Heger
Martin Ritchie schrieb: Hi, I have been reading the Configuration Builder docs (http://commons.apache.org/configuration/userguide/howto_configurationbuilder.html) and have been trying to get the configuration below to take my optional configuration. However, both the test.config property and

Re: [CONFIGURATION] Help with optional XML file in override section of configuration builder.

2009-09-15 Thread Oliver Heger
Martin Ritchie schrieb: 2009/9/14 Oliver Heger oliver.he...@oliver-heger.de: Martin Ritchie schrieb: Hi, I have been reading the Configuration Builder docs (http://commons.apache.org/configuration/userguide/howto_configurationbuilder.html) and have been trying to get the configuration below

Re: [CONFIGURATION] Help with optional XML file in override section of configuration builder.

2009-09-16 Thread Oliver Heger
Ralph Goers schrieb: On Sep 16, 2009, at 4:37 AM, Martin Ritchie wrote: Oliver, Thanks for the pointer to use DefaultConfigurationBuilder. Whilst this now does not need to have the test.config property defined or the file existing it does behave differently to the older

Re: Format XML output for Configuration

2009-09-25 Thread Oliver Heger
Pär Dahlberg schrieb: Hi I got a Commons Configuration question. Is there some easy way to format the XML output from an XMLConfiguration? Reading a config file and saving it works very well. However each time the file is saved a couple of empty lines are inserted between random elements. The

Re: Query about CONFIGURATION-390, a threading problem in commons-configuration reloading

2009-09-25 Thread Oliver Heger
to reload the configuration when the file changes. Is the plan to still support the thread-safety claim that Oliver Heger made back in 2006 ( http://www.mail-archive.com/commons-u...@jakarta.apache.org/msg14490.html)? Thanks, Stephen Kinser I cannot promise when I come to it, but I am going to have

[configuration] Re: Loading proeprteis according local

2009-11-04 Thread Oliver Heger
First, please note that this is a shared list. So it is convention to prefix the subject with the name of the component you are interested in as I have done now. Answer below... NewWay schrieb: I mean that i want to be able to use the services available to me in the commons-configuration

Re: [Jelly] Escaping variables

2010-01-05 Thread Oliver Heger
Am 05.01.2010 06:29, schrieb Paul Libbrecht: Oliver, an answer for you on: http://commons.apache.org/jelly/faq.html #escapingJexl the answer says to use double dollar signs. paul Many thanks, Paul! This works pretty well now! Oliver Le 04-janv.-10 à 22:35, Oliver Heger a écrit : Hi, I

Re: [CONFIGURATION{ Re: Extending commons-configuration XML configuration definition issue

2010-01-23 Thread Oliver Heger
Am 21.01.2010 16:20, schrieb Maxim Ulanovskiy: Thanks Ralph The idea is to create a custom Configuration namedremote which can load/update configuration files using REST service with some params such as ETag, revision etc. as those features are not supported by standard API. You right I've

[configuration] Re: Space or single quote as a value in properties files

2010-02-04 Thread Oliver Heger
Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? From looking at the code

Re: [configuration] Re: Space or single quote as a value in properties files

2010-02-05 Thread Oliver Heger
for XMLConfiguration). Oliver On Thu, Feb 4, 2010 at 10:18 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character

Re: [configuration] XMLConfiguration Empty Tag syntax

2010-02-22 Thread Oliver Heger
Am 22.02.2010 18:34, schrieb Rob Elliott: I'm parsing some XML and moving it over from one XMLConfiguration object to another as follows: private void mergeTopNode(XMLConfiguration masterCfg, XMLConfiguration mergedCfg, String nodeName) {

Re: [configuration] XMLConfiguration.getDocument

2010-02-23 Thread Oliver Heger
Am 23.02.2010 11:57, schrieb Lorenzo Cavina: Hi all, I'm using XMLConfiguration and in my opinion there's something wrong with the getDocument() method. Let me explain. I'm creating a brand new void XMLConfiguration as follows: XMLConfiguration config = new XMLConfiguration(); and the i add

Re: Null pointer exception while creating a XMLConfiguration object in a static method.

2010-05-11 Thread Oliver Heger
Am 11.05.2010 18:50, schrieb arja srinivasu: Hi, I have been running into an issue while creating an xml configuration object from an xml file, I am using jdk 1.6.0_20 and commons-configuration-1.6.jar, similar code works when the method is non-static, appreciate any comments or pointers in

Re: Null pointer exception while creating a XMLConfiguration object in a static method.

2010-05-12 Thread Oliver Heger
Am 11.05.2010 21:47, schrieb arja srinivasu: Thanks for the response, Here is the code again, hope this time it does not appear garbled. { URL dataFileURL = HierarchicalConfiguration dataFromFile = assertTrue(dataFile.exists(), privatestatic void load(String

Re: Null pointer exception while creating a XMLConfiguration object in a static method.

2010-05-13 Thread Oliver Heger
Am 12.05.2010 22:36, schrieb arja srinivasu: Thanks for the response, Sorry for the trouble, it seems the email is not displaying the source code properly when copying the formatted code from eclipse: trying this again, after copying it from notepad, I only saw this mailing list that I send

Re: Configuration: Reading multiple files with the same name (from different jars)

2010-05-17 Thread Oliver Heger
Hi Ralph, Am 17.05.2010 12:34, schrieb rhwinzin: Hi, I'm currently designing an application which has to be very flexible / extendable. My idea was to provide certain hooks (i.e. configuration files with well defined names) that can be placed in various jar modules or in the file-system

Re: XMLConfiguration: Editing Root Node

2010-06-03 Thread Oliver Heger
Am 02.06.2010 22:01, schrieb Scott Dudley: Oliver Heger wrote: Scott, which version of Commons Configuration do you use? Older versions had a bug related to manipulations of attributes of the root element. Details can be found in [1]. So maybe you are hit by this bug. Oliver, I'm using 1.2

Re: [Common Configuration] Bad Exception Handling in ConfigurationFactory

2010-09-14 Thread Oliver Heger
Am 14.09.2010 16:48, schrieb Nicolás Meléndez: Hi there, i was looking code at ConfigurationFactory and maybe a find a problem, what do you think? in class ConfigurationFactory, line 184: if digester.parse(input); throws an exception, the input stream doesn't close, and a process will leak of

Re: [commons-configuration] About reloading and thread-safety

2010-09-28 Thread Oliver Heger
Am 28.09.2010 14:02, schrieb Siddhartha S: Hi, As per documentation, most of the concrete implementations of the Configuration interface are not thread-safe when modifications are involved. However, looking at AbstractFileConfiguration (

Re: [commons-configuration] About reloading and thread-safety

2010-09-28 Thread Oliver Heger
Am 28.09.2010 22:19, schrieb Siddhartha S: Hi, Thank you for your response. An additional question : The lock you mention is just for protecting reload operations (i.e. if the file on disk has changed). There is no protection against concurrent updates by multiple threads. Are there examples

Re: [configuration] Adding method Configuration.getEnum() ?

2010-09-29 Thread Oliver Heger
Am 29.09.2010 07:22, schrieb Vladimir Dzhuvinov: Hello, Would it make sense to add a new method for retrieving enum values in some future version of Configuration? publicT extends EnumT T getEnum(String key, ClassT enumClass) publicT extends EnumT T getOptEnum(String key, ClassT enumClass,

Re: [configuration] ini files containing only a global section supported by HierarchicalINIConfiguration?

2010-10-15 Thread Oliver Heger
Hi Andre, Am 15.10.2010 17:49, schrieb Andre Weihe: Are ini files containing only a global section allowed to be used with commons configuration, especially the HierachicalINIConfiguration class? I found no advice in the javadocs that ini files should contain more than just a global section

Re: Commons Configuration 1.7

2010-10-18 Thread Oliver Heger
Am 14.10.2010 02:02, schrieb Patel, Ronak Avinash (US SSA): Hi, I have a situation where I need to use the VFSFileMonitorReloadingStrategy class mentioned in this post: https://issues.apache.org/jira/browse/CONFIGURATION-202. However, there is no mention of when this class will be added to a

[lang] Release data for 3.0

2010-12-03 Thread Oliver Heger
Hi, I was asked when [lang] 3.0 would be released. This is a good question. Is there anybody still working on new features? I think there was not that much feedback on the last beta release. At least no major complaints I am aware of. WDYT? Are there already some more concrete plans when

Re: [configuration]

2010-12-10 Thread Oliver Heger
Hi Lautaro, Am 10.12.2010 13:26, schrieb Lautaro Brasseur: I'm trying to use the CompositeConfiguration class: http://commons.apache.org/configuration/userguide/howto_compositeconfiguration.html#Setting_Up_Defaults but I didn't found the method a=dDefaults referenced in that page. Is there

Re: [configuration] XPathExpressionEngine Variable Interpolation

2011-01-23 Thread Oliver Heger
Am 23.01.2011 00:57, schrieb NJuk Njuk: i've been using Commons Configuration on a particular project for several years. until lately i have been using the DefaultExpressionEngine --- or at least i believe i have since i've never called setExpressionEngine(). my configuration is specified by a

Re: [configuration] ConfigurationConverter differing behavior for ints and strings

2011-02-01 Thread Oliver Heger
Hi Mike, Am 01.02.2011 18:35, schrieb Mike Power: Curiosity question I am seeing the ConfigurationConverter behave differently depending on if I added an int or a string to a configuration object. Consider the following code: 01 Configuration confInt = new BaseConfiguration(); 02

Re: [configuration] XInclude support in xml files

2011-02-11 Thread Oliver Heger
Am 10.02.2011 19:49, schrieb Jon Smith: Hi, I have searched through the archive as well as documentation but couldn't find if Commons Configuration's XML format supports XInclude. I know Digester has added this support but XMLConfiguration doesn't seem to be using it or, at least, does not

Re: [configuration] How to edit a bean using apache.commons.configuration ....

2011-02-12 Thread Oliver Heger
Hi, Am 12.02.2011 15:58, schrieb Moein Enayati: Dear all I'm newly familiar with apache.commons and wondering of having an XML-Preferences file for my java applicaiton . till know I found apache.commons.configuration so useful in set/getproperties and also in getting a saved bean from xml

Re: [configuration] How to edit a bean using apache.commons.configuration ....

2011-02-13 Thread Oliver Heger
location in xml file. is there any way to do so , or is it a correct approach of using configuration entities? thanks again / Moein On Sat, Feb 12, 2011 at 7:07 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Hi, Am 12.02.2011 15:58, schrieb Moein Enayati: Dear all I'm newly familiar

Re: [Configuration] Problem in using FileChangedReloadingStrategy events ...

2011-02-15 Thread Oliver Heger
Am 15.02.2011 09:37, schrieb Moein Enayati: Dear Ralph Thanks a lot . Now I can use these constants to handle my scenario. *but as a comment *, I can't find any constant named *EVENT_CONFIG_CHANGED*in * AbstractFileConfiguration* ! the hole EVENT-Constants I can find are :

Re: [Configuration] Is there any way to save my complex bean in XML resource and use it later ?

2011-02-16 Thread Oliver Heger
Am 16.02.2011 11:50, schrieb Moein Enayati: Dear Jörg You're ok! But have a look at this part of code : *BeanDeclaration bDecl = new XMLBeanDeclaration(xmlConfig, myBeanNameRootAddress);* *MyBean myBean = (MyBean ) BeanHelper.createBean(bDecl);* Here we have the ability to load a

Re: [configuration] Testing against commons-lang 2.5 and 2.6

2011-02-16 Thread Oliver Heger
Am 16.02.2011 21:22, schrieb Holmes, Daniel: Is this project tested (or planned to be) against the latest releases of commons-lang According to this page it has not been yet http://commons.apache.org/configuration/dependencies.html Thanks Daniel Holmes Currently the trunk version in

Re: [Configuration] Exception while trying to use XPathExpressionEngine

2011-02-19 Thread Oliver Heger
Am 19.02.2011 15:34, schrieb Moein Enayati: Any thing goes ok when I download and use new version of configuration library ( commons.configuration-1.6) Moein This is strange. In order to use XPathExpressionEngine, you need Commons JXPath as dependency on your class path as document in [1].

Re: [configuration] Basepath not set with DefaultConfigurationBuilder/ConfigurationBuilderProvider

2011-02-25 Thread Oliver Heger
Hi Mike, Am 24.02.2011 16:04, schrieb Mike Noordermeer: Hi, I've an issue with the DefaultConfigurationBuilder, and I'm wondering if I'm doing something wrong or if it's a bug. I've the following structure: /WEB-INF/config/defs/def-1.xml /WEB-INF/config/defs/def-2.xml

Re: [configuration] Adding Nodes in certain position

2011-04-20 Thread Oliver Heger
Hi Sergio, Am 20.04.2011 16:03, schrieb Sergio Criales: Hi There, I want to add a node before another node, but in the API I wasn' t able to find how to do it, please any ideas to do this??? Sergio Criales this is indeed a good question! With the standard API defined by the Configuration

Re: [configuration] Adding Nodes in certain position

2011-04-21 Thread Oliver Heger
setProperty() with the same key and the modified list. This will update the nodes structure correspondingly. But as I said, this only works for simple scenarios. Oliver On Wed, Apr 20, 2011 at 3:02 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Hi Sergio, Am 20.04.2011 16:03, schrieb

Re: [configuration] Adding Nodes in certain position

2011-05-06 Thread Oliver Heger
key and the modified list. This will update the nodes structure correspondingly. But as I said, this only works for simple scenarios. Oliver On Wed, Apr 20, 2011 at 3:02 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Hi Sergio, Am 20.04.2011 16:03, schrieb Sergio Criales: Hi

Re: [configuration] backslash escaping

2011-06-09 Thread Oliver Heger
Hi Vladimir, Am 09.06.2011 11:05, schrieb Vladimir Stevanovic: HI, I'm using XMLConfiguration with XPathExspressionEngine and I noticed a strange bahavior of configuraiton framework XMLConfiguration config = new XMLConfiguration(); config.setDelimiterParsingDisabled(true);

Re: [configuration] inconsistent behaving of AbstractHierarchicalFileConfiguration.containsKey(String) method

2011-06-09 Thread Oliver Heger
Hi Vladimir, Am 09.06.2011 11:27, schrieb Vladimir Stevanovic: I'm using the following code: //part1 XMLConfiguration config= new XMLConfiguration(); config.setDelimiterParsingDisabled(true); config.setExpressionEngine(new XPathExpressionEngine()); config.setFile(f); if (f.exists()) {

Re: File reload for additional in CombinedConfiguration

2011-08-10 Thread Oliver Heger
Am 11.08.2011 02:23, schrieb Jon Smith: Hi, File reload doesn't seem to be working for files insideadditional tag using DefaultConfigurationBuilder. Reload works fine for files inside override tag. I do have forceReloadCheck set to true. Is this expected? No, this looks like a bug. Could

Re: configuration --- get the properties object loaded after the delayed refresh

2011-09-03 Thread Oliver Heger
Hi, Am 03.09.2011 07:59, schrieb Srinivas Jonnalagadda: Hi, Below is the code for i wrote and seems at the propsConfig object gets refreshd after the delay but the result object has the old values still. How do i get the new values into the result object after the refresh. I am trying to

Re: configuration --- get the properties object loaded after the delayed refresh

2011-09-07 Thread Oliver Heger
Am 07.09.2011 19:03, schrieb Srinivas Jonnalagadda: Oliver, Thanks for the reply. I wrote a JUNIT test and Below is the code. My aim was that when i set the refresh delay to 500 and after the initial test passed i put a thread.sleep for 2 minutes. when the thread sleeps i am changing the

[ANNOUNCEMENT] Commons Configuration 1.7 Released

2011-09-08 Thread Oliver Heger
://commons.apache.org/configuration/download_configuration.cgi (Please remember to verify the provided checksums and/or signatures after you have downloaded a distribution!) Oliver Heger on behalf of the Apache Commons Team

Re: [CONFIGURATION] preserve mulitline property over load and save

2011-09-13 Thread Oliver Heger
Hi Wieland, Am 13.09.2011 18:19, schrieb Wieland Gmeiner: Hi, i have property values spanning multiple lines like value = aaa, \ bbb When I load this into a PropertiesConfiguration and later store to a file I can only achieve two results, * having everything on

Re: [CONFIGURATION] preserve mulitline property over load and save

2011-09-14 Thread Oliver Heger
Am 14.09.2011 13:18, schrieb Wieland Gmeiner: On Wed, Sep 14, 2011 at 12:37 PM, sebbseb...@gmail.com wrote: On 14 September 2011 09:23, Wieland Gmeinerwieland.gmei...@gmail.com wrote: On Wed, Sep 14, 2011 at 1:15 AM, sebbseb...@gmail.com wrote: On 13 September 2011 23:19, Wieland

Re: [configuration] Unable to persist CombinedConfiguration changes to the Filesystem.

2011-10-22 Thread Oliver Heger
Am 21.10.2011 22:49, schrieb raghunath tpk: Hi, I am using apache commons configuration to load the configuration data from various sources. Following is the issue : I use a config.xml file to load multiple Configuration Sources Ex: configuration header/ override properties

Re: [configuration] can you use wild cards to read in multiple files

2011-11-16 Thread Oliver Heger
Am 15.11.2011 14:37, schrieb Billy Newman: I am trying to read in multiple files into a configuration. The file names are dynamic so I cannot hard code to names in my config.xml file. File names might be something like: Some-nodes.xml More-nodes.xml Is there a way I can specify *-nodes.xml in

Re: [configuration] Any way to tell with CompositeConfiguration which child Config object a value is derived?

2011-11-17 Thread Oliver Heger
. Oliver [1] http://commons.apache.org/configuration/issue-tracking.html On Wed, Nov 16, 2011 at 1:34 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 16.11.2011 22:24, schrieb Tim Bessie: I have been trying to use commons-configuration, especially the CompositeConfiguration object

Re: [configuration] Issues with XMLConfiguration

2011-12-13 Thread Oliver Heger
Hello Raimund, many thanks for your feedback. Am 13.12.2011 14:45, schrieb Klein, Raimund: Hi everyone, I've been playing around with configuration 1.7 for a while now, specifically XMLConfiguration (since I'm a fan of hierarchical files) and the XPathExpressionEngine. Cool stuff. :-)

Re: [configuration] XPathExpressionEngine - xpath syntax

2011-12-29 Thread Oliver Heger
Hi, some comments below... Oliver Am 29.12.2011 11:02, schrieb M M: Hi, I'm trying to use /_*Commons Configuration*_/ to parse an XML configuration file and I'm having some troubles with the xpath syntax. After a few tries I understood that I need to use the XPathExpressionEngine, and i think

[ANNOUNCEMENT] Commons Configuration 1.8 Released

2012-02-05 Thread Oliver Heger
the provided checksums and/or signatures after you have downloaded a distribution!) Oliver Heger on behalf of the Apache Commons Team - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h

  1   2   >