Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6
-
None
-
should show up in any environment, as the test cases are disabled for arrays and maps:
http://commons.apache.org/configuration/xref-test/org/apache/commons/configuration/plist/TestXMLPropertyListConfiguration.html#199
I was testing 1.6 using groovy console under Mac OS X 10.6
Description
groovy> import org.apache.commons.configuration.plist.* groovy> def config = new XMLPropertyListConfiguration() groovy> config.addProperty("things", ['chair', 'hat', 'door']) groovy> config.save(System.out)
results in
<?xml version="1.0"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="1.0"> <dict> <key>things</key> <string>chair</string> <key>things</key> <string>hat</string> <key>things</key> <string>door</string> </dict> </plist>
expecting
<?xml version="1.0"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="1.0"> <dict> <key>things</key> <array> <string>chair</string> <string>hat</string> <string>door</string> </array> </dict> </plist>
Attachments
Attachments
Issue Links
- is cloned by
-
CONFIGURATION-750 XMLPropertyListConfiguration cannot set arrays in the correct plist form
- Closed