mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-29 09:28:53 +00:00
This commit is contained in:
@@ -257,6 +257,10 @@ public class DaemonParameters {
|
||||
return property(Environment.DAEMON_MAX_LOST_KEEP_ALIVE).orFail().asInt();
|
||||
}
|
||||
|
||||
public boolean noBuffering() {
|
||||
return property(Environment.MVND_NO_BUFERING).orFail().asBoolean();
|
||||
}
|
||||
|
||||
public static String findDefaultMultimoduleProjectDirectory(Path pwd) {
|
||||
Path dir = pwd;
|
||||
do {
|
||||
|
@@ -62,9 +62,10 @@ public class DefaultClient implements Client {
|
||||
}
|
||||
}
|
||||
|
||||
try (TerminalOutput output = new TerminalOutput(logFile)) {
|
||||
DaemonParameters parameters = new DaemonParameters();
|
||||
try (TerminalOutput output = new TerminalOutput(parameters.noBuffering(), logFile)) {
|
||||
try {
|
||||
new DefaultClient(new DaemonParameters()).execute(output, args);
|
||||
new DefaultClient(parameters).execute(output, args);
|
||||
} catch (DaemonException.InterruptedException e) {
|
||||
final AttributedStyle s = new AttributedStyle().bold().foreground(AttributedStyle.RED);
|
||||
String str = new AttributedString(System.lineSeparator() + "Canceled by user", s).toAnsi();
|
||||
|
Reference in New Issue
Block a user