mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 14:10:52 +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
@@ -279,6 +279,10 @@ public class DaemonParameters {
|
||||
return property(Environment.MVND_NO_BUFERING).orFail().asBoolean();
|
||||
}
|
||||
|
||||
public int rollingWindowSize() {
|
||||
return property(Environment.MVND_ROLLING_WINDOW_SIZE).orFail().asInt();
|
||||
}
|
||||
|
||||
public static String findDefaultMultimoduleProjectDirectory(Path pwd) {
|
||||
Path dir = pwd;
|
||||
do {
|
||||
|
@@ -63,7 +63,7 @@ public class DefaultClient implements Client {
|
||||
}
|
||||
|
||||
DaemonParameters parameters = new DaemonParameters();
|
||||
try (TerminalOutput output = new TerminalOutput(parameters.noBuffering(), logFile)) {
|
||||
try (TerminalOutput output = new TerminalOutput(parameters.noBuffering(), parameters.rollingWindowSize(), logFile)) {
|
||||
try {
|
||||
new DefaultClient(parameters).execute(output, args);
|
||||
} catch (DaemonException.InterruptedException e) {
|
||||
|
Reference in New Issue
Block a user