83 lines
2.8 KiB
Diff
83 lines
2.8 KiB
Diff
From e3d2a29743e1b36beaf1063567da9dfd2e5a8aa8 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
|
|
|
|
---
|
|
.../maven/shared/utils/logging/AnsiMessageBuilder.java | 18 ++++++++++++++++++
|
|
.../maven/shared/utils/logging/MessageBuilder.java | 3 +++
|
|
.../shared/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 0103a6b..23b6d14 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 b60bb4e..1dc2624 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 2eec001..5236e99 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.14.3
|
|
|