Class DuplicateFilteringLoggingProgressMonitor
- java.lang.Object
-
- org.eclipse.tycho.repository.util.LoggingProgressMonitor
-
- org.eclipse.tycho.repository.util.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 Summary
Fields Modifier and Type Field Description private java.lang.String
lastLine
private static java.lang.String
NON_MATCHING_LINE
private static java.util.regex.Pattern
PATTERN_FETCHING
-
Constructor Summary
Constructors Constructor Description DuplicateFilteringLoggingProgressMonitor(MavenLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
checkIfDuplicateOfLastOutput(java.lang.String message)
protected boolean
suppressOutputOf(java.lang.String text)
-
Methods inherited from class org.eclipse.tycho.repository.util.LoggingProgressMonitor
beginTask, done, internalWorked, isCanceled, setCanceled, setTaskName, subTask, worked
-
-
-
-
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 classLoggingProgressMonitor
- Parameters:
text
- The candidate text for logging. Nevernull
.
-
checkIfDuplicateOfLastOutput
private boolean checkIfDuplicateOfLastOutput(java.lang.String message)
-
-