[ http://issues.apache.org/jira/browse/CONFIGURATION-170?page=all ]
Oliver Heger resolved CONFIGURATION-170. ---------------------------------------- Fix Version/s: Nightly Builds Resolution: Fixed You can now force PropertiesConfiguration to write all multi-valued properties on a single line on saving by doing: config.getLayout().setForceSingleLine(true); before you call save(). > [configuration] Add an option to save multiple values in one line > ----------------------------------------------------------------- > > Key: CONFIGURATION-170 > URL: http://issues.apache.org/jira/browse/CONFIGURATION-170 > Project: Commons Configuration > Issue Type: Improvement > Affects Versions: 1.2 Final > Environment: Operating System: All > Platform: All > Reporter: Kenji Nakamura > Priority: Minor > Fix For: Nightly Builds > > > I'd like to save a property to a file with List type value in one line. > By default, the output looks like this. > key = value1 > key = value2 > I want to make the output like this. > key = value1, value2 > Changing delimiter to '0' before calling save achieves the format, but > retrieval of the value, say by > calling getList(), results in returning a value "value1, value2" instead of > values "value1" and "value2", > even if the original delimiter ',' is set back. > In addition to that, the delimiter is defined as static and changing the > value affects all threads, which is > not typically desirable. > It would be nice to have an option to save multiple values in a single line, > with thread safe manner. > Thanks, -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]