Locale support for formatting dates and times
---------------------------------------------
Key: MOJO-1193
URL: http://jira.codehaus.org/browse/MOJO-1193
Project: Mojo
Issue Type: Improvement
Components: buildnumber
Reporter: Jukka Zitting
Priority: Minor
Attachments: buildnumber-locale.patch
Currently the buildnumber plugin just uses the platform default locale when
formatting dates and times. This is troublesome as it makes the build result
depend on system- or user-specific settings.
The attached patch adds an "locale" configuration option that can be used to
explicitly specify the locale to use for formatting. The default is still the
platform default locale, so this change should introduce no backwards
compatibility issues. I included a "@since 1.0-beta-2" for the configuration
option, hoping that this change could be included in the next release.
There's also a simple unit test for the added locale support. To simplify the
tests I moved the shared code for getting the base directory up to the setUp()
method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email