Class DuplicateFilteringLoggingProgressMonitor

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IProgressMonitor

    public final class DuplicateFilteringLoggingProgressMonitor
    extends LoggingProgressMonitor
    LoggingProgressMonitor which removes duplicated and other obsolete log output produced by p2/ECF when downloading artifacts.

    Instances of this class are not thread-safe.

    • Field Detail

      • NON_MATCHING_LINE

        private static final java.lang.String NON_MATCHING_LINE
        See Also:
        Constant Field Values
      • lastLine

        private java.lang.String lastLine
      • PATTERN_FETCHING

        private static final java.util.regex.Pattern PATTERN_FETCHING
    • Constructor Detail

      • DuplicateFilteringLoggingProgressMonitor

        public DuplicateFilteringLoggingProgressMonitor​(MavenLogger logger)
    • Method Detail

      • suppressOutputOf

        protected boolean suppressOutputOf​(java.lang.String text)
        Overrides:
        suppressOutputOf in class LoggingProgressMonitor
        Parameters:
        text - The candidate text for logging. Never null.
      • checkIfDuplicateOfLastOutput

        private boolean checkIfDuplicateOfLastOutput​(java.lang.String message)