mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-11-29 02:00:26 +08:00
Fixes module id coloring on Maven transfer.
The module id coloring was not consistent during transfer and it caused "vibrating" effect.
This commit is contained in:
@@ -90,6 +90,7 @@ public class TerminalOutput implements ClientOutput {
|
||||
|
||||
private static final AttributedStyle GREEN_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.GREEN);
|
||||
private static final AttributedStyle CYAN_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.CYAN);
|
||||
private static final AttributedStyle WHITE_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.WHITE);
|
||||
|
||||
private final Terminal terminal;
|
||||
private final Terminal.SignalHandler previousIntHandler;
|
||||
@@ -767,12 +768,15 @@ public class TerminalOutput implements ClientOutput {
|
||||
if (transfer != null) {
|
||||
asb
|
||||
.append(':')
|
||||
.style(CYAN_FOREGROUND)
|
||||
.append(String.format(artifactIdFormat, prj.id))
|
||||
.style(WHITE_FOREGROUND)
|
||||
.append(transfer);
|
||||
} else if (execution == null) {
|
||||
asb
|
||||
.append(':')
|
||||
.append(prj.id);
|
||||
.style(CYAN_FOREGROUND)
|
||||
.append(String.format(artifactIdFormat, prj.id));
|
||||
} else {
|
||||
asb
|
||||
.append(':')
|
||||
|
||||
Reference in New Issue
Block a user