Blob Blame History Raw
From 0466ed821db9af6ad856b011566148b3ad0d0267 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Mon, 26 Feb 2018 16:21:04 +0100
Subject: [PATCH 1/3] 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 2d59bc9..77c93ae 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
@@ -153,4 +153,22 @@ class AnsiMessageBuilder
     {
         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 060e824..a3b3025 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
@@ -26,6 +26,9 @@ package org.apache.maven.shared.utils.logging;
  */
 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 6a7b56e..1a5889a 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
@@ -139,4 +139,22 @@ class PlainMessageBuilder
     {
         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.26.2