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

Blame command : Unparseable date when locale is not US

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.4
    • maven-scm-provider-cvs
    • None
    • Locale en
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: