Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.
Unregistered
|
|
This is all unneccesary. JDK 1.5 supports XML property files. Just take your property file and use the storeToXML() method to convert your property file. Then manipulate it as XML to your hearts content. You can convert it back to a "normal" property file at any time.
|
Melih Çetin
Unregistered
|
|
The tool provided brings the following benefits:
- maintaining one single XML file for a bundle regardless of how many different locales are supported
- avoiding the use of Unicode escapes in properties files
- sharing mnemonics across the properties files of different bundles
JDK 1.5 feature of storing properties in XML property files would only address "avoiding the use of Unicode escapes in properties files" but as XML property files are not recognized by PropertyResourceBundle class, even this is not possible. Converting property files to XML, editing them as XML and converting them back to "normal" property files would make the maintenance process even more difficult.
|
|
0 registered and 1 anonymous users are browsing this forum.
Moderator:
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Topic views: 3609
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5