83 lines
2.8 KiB
Diff
83 lines
2.8 KiB
Diff
From 9b56e978de98c6927e8c88456154cfaf6dfeb7c9 Mon Sep 17 00:00:00 2001
|
|
From: Michael Simacek <msimacek@redhat.com>
|
|
Date: Mon, 26 Feb 2018 16:21:04 +0100
|
|
Subject: [PATCH] Restore compatibility with current maven
|
|
|
|
---
|
|
.../utils/logging/AnsiMessageBuilder.java | 18 ++++++++++++++++++
|
|
.../shared/utils/logging/MessageBuilder.java | 3 +++
|
|
.../utils/logging/PlainMessageBuilder.java | 18 ++++++++++++++++++
|
|
3 files changed, 39 insertions(+)
|
|
|
|
diff --git a/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java
|
|
index ddb9ab7..6fc9012 100644
|
|
--- a/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java
|
|
+++ b/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java
|
|
@@ -133,4 +133,22 @@ class AnsiMessageBuilder implements MessageBuilder, LoggerLevelRenderer {
|
|
public String build() {
|
|
return ansi.toString();
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder debug(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder info(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder error(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
}
|
|
diff --git a/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java
|
|
index fa1c07b..5cc49cc 100644
|
|
--- a/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java
|
|
+++ b/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java
|
|
@@ -30,6 +30,9 @@ import java.util.Formatter;
|
|
* @since 3.1.0
|
|
*/
|
|
public interface MessageBuilder {
|
|
+ MessageBuilder debug(Object message);
|
|
+ MessageBuilder info(Object message);
|
|
+ MessageBuilder error(Object message);
|
|
/**
|
|
* Append message content in success style.
|
|
* By default, bold green
|
|
diff --git a/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
|
|
index 86b3e2a..a3f9685 100644
|
|
--- a/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
|
|
+++ b/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
|
|
@@ -120,4 +120,22 @@ class PlainMessageBuilder implements MessageBuilder, LoggerLevelRenderer {
|
|
public String build() {
|
|
return buffer.toString();
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder debug(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder info(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MessageBuilder error(Object message) {
|
|
+ a(message);
|
|
+ return this;
|
|
+ }
|
|
}
|
|
--
|
|
2.45.2
|
|
|