Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-551

Blame command : Unparseable date when locale is not US

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: maven-scm-provider-cvs
    • Labels:
      None
    • Environment:
      Locale en
    • Flags:
      Patch

      Description

      I use blame command for CVS provider and there is this exception :

      [ERROR] skip ParseException: Unparseable date: "17-Jul-07" during parsing date 17-Jul-07 with pattern dd-MMM-yy with Locale en
      java.text.ParseException: Unparseable date: "17-Jul-07"
      at java.text.DateFormat.parse(DateFormat.java:335)
      at org.apache.maven.scm.util.AbstractConsumer.parseDate(AbstractConsumer.java:112)
      at org.apache.maven.scm.util.AbstractConsumer.parseDate(AbstractConsumer.java:68)
      at org.apache.maven.scm.provider.cvslib.command.blame.CvsBlameConsumer.consumeLine(CvsBlameConsumer.java:64)
      at org.codehaus.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:195)
      at org.codehaus.plexus.util.cli.StreamPumper.run(StreamPumper.java:144)

      I propose a patch to fix this problem.

        Attachments

        1. blame-parseexception.patch
          1 kB
          Fabien Bousquet

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              fafanoulele Fabien Bousquet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: