Type | Changes | By |
| The reload() method in AbstractFileConfiguration was updated to prevent reentrant invocation, which may be caused by some methods when they are called during a reloading operation. Fixes
36665. |
oheger
|
| AbstractHierarchicalFileConfiguration, a new base class for file based hierarchical configurations, was introduced. XMLConfiguration now extends this class. |
ebourg, oheger
|
| XMLConfiguration now prints the used encoding in the xml declaration of generated files. In earlier versions always the default encoding was written. PropertiesConfiguration now always uses the platform specific line separator when saving files. Fixes
37293. Thanks to Kay Doebl . |
oheger
|
| PropertiesConfiguration now translates properly the escaped unicode characters (like \u1234) used in the property keys. This complies with the specification of java.util.Properties. Fixes
36991. |
ebourg
|
| ConfigurationConverter.getProperties() now uses the delimiter of the specified configuration to convert the list properties into strings. Fixes
36784. |
ebourg
|
| The interpolation of variables (${foo}) is now performed in all property getters of AbstractConfiguration and DataConfiguration. As a side effect the Properties object returned by ConfigurationConverter.getProperties() contains only interpolated values. Fixes
36784. |
ebourg
|
| PropertiesConfiguration now uses the ISO-8859-1 encoding by default instead of the system encoding to comply with the specification of java.util.Properties. Fixes
36699. |
ebourg
|
| JNDIConfiguration no longer logs an error when attem pting to get a property that doesn't exist in the configuration. Fixes
36664. |
ebourg
|
| Attempting to load a configuration from a directory instead of a file will now throw a ConfigurationException. Fixes
36488. |
ebourg
|
| If a multi-valued property was involved in an interpolation operation, AbstractConfiguration created a string representation of the list of all values. This was changed to only use the first value, which makes more sense in this context and is consistent with other getters for single valued properties. Fixes
36447. |
oheger
|
| If an include file with a relative path cannot be found in the base path, PropertiesConfiguration now also tries to resolve it based on its own location. Fixes
36383. |
oheger
|
| Fixed MapConfiguration to store the list of values added under a same key instead of the last value added. Fixes
35945. Thanks to Steve Bate . |
ebourg
|
| Fixed a bug in the handling of relative file names in ConfigurationFactory: In most cases relative file names were not resolved relative to the location of the configuration definition file as stated in the documentation. This behavior was now changed to always be in sync with the documentation. This may have an impact on existing code which uses workarounds for the erroneous resolving mechanism. Fixes
35316. |
oheger
|
| Empty elements or elements whose content consists only of comments or whitespace are now taken into account by XMLConfiguration. They are added to the configuration; their value is an empty string. Fixes
35963. |
oheger
|
| XMLConfiguration now sets a valid system id in the InputSource used for loading files. This enables XML parsers to correctly resolve relative files, e.g. DTDs. |
oheger
|
| getKeys() in HierarchicalConfiguration now returns the keys in the same order the properties were inserted. Fixes
35903. |
ebourg
|
| Commons Configuration now depends on Commons Collections 3.1 instead of 3.0 |
ebourg
|
| New configurations implementing the "property list" format used in NeXT/OpenStep and its XML variant used in Mac OS X. (PropertyListConfiguration and XMLPropertyListConfiguration) Fixes
32633. |
ebourg
|
| Resolved some issues with XMLConfiguration and properties containing the delimiter character. These properties are now correctly treated, escaping the delimiter will work, too. Fixes
35938. |
oheger
|
| Added support for XMLPropertiesConfiguration in ConfigurationFactory. A < properties> element will generate a XMLPropertiesConfiguration if the filename ends with ".xml". |
ebourg
|
| PropertiesConfiguration now supports escaped key/value separators in the keys (i.e foo\:key = bar). Fixes
29192. |
ebourg
|
| PropertiesConfiguration now supports all key/value separators supported by java.util.Properties ('=', ':' and white space characters). Fixes
29171. |
ebourg
|
| Commons Configuration now depends on Commons Lang 2.1 instead of 2.0 |
ebourg
|
| Comment lines for PropertiesConfiguration can start with the '!' char (compatibility with java.util.Properties) Fixes
35888. |
ebourg
|
| Because ConfigurationUtils.copy() does not fully support hierarchical configurations a clone() method was added to HierarchicalConfiguration that can be used instead. Fixes
35772. |
oheger
|
| XMLConfiguration now provides some support for validating XML documents. With the setValidating() method DTD validation can be enabled. It is also possible to set a custom DocumentBuilder allowing a caller to perform enhanced configuration of the XML loading process. Fixes
31616. |
oheger
|
| AbstractFileConfiguration now always sets a valid base path if the configuration file could be located. This allows PropertiesConfiguration to resolve include files even when loaded from class path. Fixes
35621. |
oheger
|
| Updated XMLConfiguration to correctly deal with properties containing dots in their names. Such properties could not be accessed before. Fixes
35509. |
oheger
|
| PropertiesConfiguration's handling of backslash characters at the end of line was incorrect when there was an even number of trailing backslashes. This is now fixed. Fixes
35119. |
oheger
|
| Fixed a problem related to file based configurations that are loaded from a URL which is application/x-www-form-urlencoded: the save() method would store such files at a wrong location. Fixes
35210. |
oheger
|
| Updated FileChangedReloadingStrategy to use the file based configuration's source URL to find the file to watch. Before that it was possible that the strategy checked the wrong file. For configuration files loaded from a jar FileChangedReloadingStrategy now checks the jar file itself for changes. Finally a bug was fixed which caused the strategy to check the watched file's last change date on every invocation of its reloadingRequired() method ignoring its refresh delay. Thanks to Jorge Ferrer. Fixes
34289. |
oheger
|
| Fixed a bug in the collaboration between XMLConfiguration and its reloading strategy: The configuration did not check its reloading strategy, so no reload was performed. Fixes
35118. |
oheger
|
| Disabled auto save mode during PropertiesConfiguration.load(). Prior it was possible that the properties file to be loaded was immideately overwritten. Fixes
34410. |
oheger
|
| Under certain circumstances it was possible that a reloading strategy set for PropertiesConfiguration interferred with the save() method causing the configuration file to be erased. This has now been fixed. Fixes
34441. |
oheger
|
| AbstractFileConfiguration now stores the URL of the config file in the load() methods. This URL is reused by the save() method to ensure that the same file is written. Fixes
34362. Thanks to Jamie M. Guillemette . |
oheger
|
| XMLPropertiesConfiguration no longer depends on Digester to parse the configuration file, it's now implemented with a pure SAX parser. Thanks to Alistair Young . |
ebourg
|
| Fixed a bug which causes XMLConfiguration.save to lose attribute values under some circumstances. The clear() method now also ensures that the associated DOM document is always cleared. Fixes
34442. Thanks to Mi Zhang . |
oheger
|
| XMLConfiguration now parse the configuration using the encoding declared in the XML header instead of the OS default encoding. Fixes
34204. Thanks to Kunihara Tetsuya . |
ebourg
|
| XMLConfiguration now uses the delimiter set by setDelimiter(char). Thanks to Zsolt Koppany . |
ebourg
|