Class TfsChangeLogConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public class TfsChangeLogConsumer
    extends AbstractConsumer
    • Field Detail

      • logs

        private java.util.List<ChangeSet> logs
      • buffer

        private java.lang.String buffer
      • fed

        boolean fed
    • Constructor Detail

      • TfsChangeLogConsumer

        public TfsChangeLogConsumer​(ScmLogger logger)
    • Method Detail

      • consumeLine

        public void consumeLine​(java.lang.String line)
      • getLogs

        public java.util.List<ChangeSet> getLogs()
      • addChangeLog

        private void addChangeLog()
      • hasBeenFed

        public boolean hasBeenFed()
      • parseDate

        protected static java.util.Date parseDate​(java.lang.String dateString)
                                           throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseWithFormats

        private static java.util.Date parseWithFormats​(java.lang.String input,
                                                       java.text.DateFormat[] formats)
                                                throws java.text.ParseException
        Throws:
        java.text.ParseException
      • createDateFormatsForLocaleAndTimeZone

        private static java.text.DateFormat[] createDateFormatsForLocaleAndTimeZone​(java.util.Locale locale,
                                                                                    java.util.TimeZone timeZone)
        Build an array of DateFormats that are commonly used for this locale and timezone.