mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-27 16:08:21 +00:00
Property to configure the default rolling window size (defaults to 2)
This commit is contained in:

committed by
Peter Palaga

parent
94a2a07058
commit
c8c5d08e1f
@@ -64,6 +64,10 @@ public enum Environment {
|
||||
* display.
|
||||
*/
|
||||
MVND_NO_BUFERING("mvnd.noBuffering", null, "false", false),
|
||||
/**
|
||||
* The size of the rolling window
|
||||
*/
|
||||
MVND_ROLLING_WINDOW_SIZE("mvnd.rollingWindowSize", null, "2", false),
|
||||
/**
|
||||
* The path to the daemon registry
|
||||
*/
|
||||
|
@@ -107,11 +107,12 @@ public class TerminalOutput implements ClientOutput {
|
||||
}
|
||||
}
|
||||
|
||||
public TerminalOutput(boolean noBuffering, Path logFile) throws IOException {
|
||||
public TerminalOutput(boolean noBuffering, int rollingWindowSize, Path logFile) throws IOException {
|
||||
this.start = System.currentTimeMillis();
|
||||
this.terminal = TerminalBuilder.terminal();
|
||||
this.dumb = terminal.getType().startsWith("dumb");
|
||||
this.noBuffering = noBuffering;
|
||||
this.linesPerProject = rollingWindowSize;
|
||||
terminal.enterRawMode();
|
||||
Thread mainThread = Thread.currentThread();
|
||||
daemonDispatch = m -> {
|
||||
|
Reference in New Issue
Block a user