Maven 1.x XDoc Plugin
  1. Maven 1.x XDoc Plugin
  2. MPXDOC-150

maven.xdoc.date.format does not seem to have any effect?

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.2
    • Labels:
      None
    • Environment:
      XP
    • Number of attachments :
      1

      Description

      Hello

      I believe that the maven.xdoc.date.format property put in my project.properties file has no effect.
      Regardless of what I put there, the date format seems to be:
      June 22, 2005 9:04:09 PM BST

      despite having:
      maven.xdoc.date.format=dd MMM yyyy HH:mm z

      The properties file is taken into account as I can change where the date is:
      maven.xdoc.date=left
      or
      maven.xdoc.date=right

      Thanks
      Benoit

      1. MPXDOC-150.patch
        5 kB
        Ignacio G. Mac Dowell

        Activity

        Hide
        Ignacio G. Mac Dowell added a comment -

        IMO this bug was introduced with i18n. This patch solves the issue.

        If a date pattern is specified then the date is formatted according to this pattern and the current locale being processed.

        If no date pattern (empty maven.xdoc.date.format) is specified it just does a long dateStyle formatting (as before the patch). In other words if we are generating 'en' docs we'd get: August 24, 2005 12:13:36 PM
        When generating 'fr' docs we'd get: 24 août 2005 12:13:36

        This patch is against svn trunk

        PD: IMHO maven.xdoc.date.locale should be deprecated. The date locale should be the same than the whole xdoc locale. This property was introduced before i18n.

        Show
        Ignacio G. Mac Dowell added a comment - IMO this bug was introduced with i18n. This patch solves the issue. If a date pattern is specified then the date is formatted according to this pattern and the current locale being processed. If no date pattern (empty maven.xdoc.date.format) is specified it just does a long dateStyle formatting (as before the patch). In other words if we are generating 'en' docs we'd get: August 24, 2005 12:13:36 PM When generating 'fr' docs we'd get: 24 août 2005 12:13:36 This patch is against svn trunk PD: IMHO maven.xdoc.date.locale should be deprecated. The date locale should be the same than the whole xdoc locale. This property was introduced before i18n.
        Hide
        Arnaud Heritier added a comment -

        Applied. Thanks.

        Show
        Arnaud Heritier added a comment - Applied. Thanks.

          People

          • Assignee:
            Arnaud Heritier
            Reporter:
            Benoit Xhenseval
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: