6124c0
From 0466ed821db9af6ad856b011566148b3ad0d0267 Mon Sep 17 00:00:00 2001
6124c0
From: Michael Simacek <msimacek@redhat.com>
6124c0
Date: Mon, 26 Feb 2018 16:21:04 +0100
6124c0
Subject: [PATCH 1/3] Restore compatibility with current maven
6124c0
6124c0
---
6124c0
 .../utils/logging/AnsiMessageBuilder.java      | 18 ++++++++++++++++++
6124c0
 .../shared/utils/logging/MessageBuilder.java   |  3 +++
6124c0
 .../utils/logging/PlainMessageBuilder.java     | 18 ++++++++++++++++++
6124c0
 3 files changed, 39 insertions(+)
6124c0
6124c0
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
6124c0
index 2d59bc9..77c93ae 100644
6124c0
--- a/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java
6124c0
+++ b/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java
6124c0
@@ -153,4 +153,22 @@ class AnsiMessageBuilder
6124c0
     {
6124c0
         return ansi.toString();
6124c0
     }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder debug(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder info(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder error(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
 }
6124c0
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
6124c0
index 060e824..a3b3025 100644
6124c0
--- a/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java
6124c0
+++ b/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java
6124c0
@@ -26,6 +26,9 @@ package org.apache.maven.shared.utils.logging;
6124c0
  */
6124c0
 public interface MessageBuilder
6124c0
 {
6124c0
+    MessageBuilder debug( Object message );
6124c0
+    MessageBuilder info( Object message );
6124c0
+    MessageBuilder error( Object message );
6124c0
     /**
6124c0
      * Append message content in success style.
6124c0
      * By default, bold green
6124c0
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
6124c0
index 6a7b56e..1a5889a 100644
6124c0
--- a/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
6124c0
+++ b/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
6124c0
@@ -139,4 +139,22 @@ class PlainMessageBuilder
6124c0
     {
6124c0
         return buffer.toString();
6124c0
     }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder debug(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder info(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
+
6124c0
+    @Override
6124c0
+    public MessageBuilder error(Object message) {
6124c0
+        a(message);
6124c0
+        return this;
6124c0
+    }
6124c0
 }
6124c0
-- 
6124c0
2.26.2
6124c0