project.xml
v 1.12
src/java/com/sun/syndication/io/impl/DateParser.java
v 1.9
src/java/com/sun/syndication/io/impl/PluginManager.java
v 1.4
src/java/com/sun/syndication/io/impl/PropertiesLoader.java
v 1.1
src/test/rome.properties
v 1.1
src/test/com/sun/syndication/unittest/DateParseTest.java
v 1.2
src/test/com/sun/syndication/unittest/TestDateParser.java
v 1.1
---+++ 14. Change. DateParser can use additional custom datetime masks Besides attempting to parse datetime values in W3C and RFC822 formats additional datetime masks can be specified in the /rome.properties files using the 'datetime.extra.masks' property. To indicate multiple masks the '|' character must be used, all other characters are considered part of the mask. As with parser/generators/converter plugins the masks are read from all /rome.properties file in the classpath. *** the following changes are implementation only, do not affect any aditional ROME behavior * Refactored PluginManager Moved logic that processes the rome.properties files to a new class, PropertiesLoader. As a result the PluginManager code is cleaner and the logic to read and aggregate properties from all rome.properties files is simpler than it was before. * DateParserTest changes The test was not being run as only Test* classes are used as part of the unit-testing. Renamed class to TestDateParser, now the test is run as part of the build. Added test cases to verify the additional datetime masks driven by rome.properties files work. * project.xml clean-up |