Interface MessageBuilder
Deprecated.
Message builder that supports configurable styling.
An instance of this interface can be retrieved with
MessageUtils.buffer().
After the message has been constructed with any of the append methods its content can be retrieved
with build().- Since:
- 3.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiona(char[] value) Deprecated.Append content to the message buffer.a(char[] value, int offset, int len) Deprecated.Append content to the message buffer.a(CharSequence value) Deprecated.Append content to the message buffer.a(CharSequence value, int start, int end) Deprecated.Append content to the message buffer.Deprecated.Append content to the message buffer.build()Deprecated.Get the message constructed by this builder.Deprecated.Append message content in failure style.Deprecated.Append formatted content to the buffer.Deprecated.Append message content in mojo style.newline()Deprecated.Append newline to the message buffer.Deprecated.Append message content in project style.Deprecated.Append message content in strong style.Deprecated.Append message content in success style.toString()Deprecated.Rather usebuild()Deprecated.Append message content in warning style.
-
Method Details
-
success
Deprecated.Append message content in success style. By default, bold green.- Parameters:
message- the message to append- Returns:
- the current builder
-
warning
Deprecated.Append message content in warning style. By default, bold yellow.- Parameters:
message- the message to append- Returns:
- the current builder
-
failure
Deprecated.Append message content in failure style. By default, bold red.- Parameters:
message- the message to append- Returns:
- the current builder
-
strong
Deprecated.Append message content in strong style. By default, bold.- Parameters:
message- the message to append- Returns:
- the current builder
-
mojo
Deprecated.Append message content in mojo style. By default, green.- Parameters:
message- the message to append- Returns:
- the current builder
-
project
Deprecated.Append message content in project style. By default, cyan.- Parameters:
message- the message to append- Returns:
- the current builder
-
a
Deprecated.Append content to the message buffer.- Parameters:
value- the content to appendoffset- the index of the firstcharto appendlen- the number ofchars to append- Returns:
- the current builder
-
a
Deprecated.Append content to the message buffer.- Parameters:
value- the content to append- Returns:
- the current builder
-
a
Deprecated.Append content to the message buffer.- Parameters:
value- the content to appendstart- the starting index of the subsequence to be appendedend- the end index of the subsequence to be appended- Returns:
- the current builder
-
a
Deprecated.Append content to the message buffer.- Parameters:
value- the content to append- Returns:
- the current builder
-
a
Deprecated.Append content to the message buffer.- Parameters:
value- the content to append- Returns:
- the current builder
-
newline
MessageBuilder newline()Deprecated.Append newline to the message buffer.- Returns:
- the current builder
-
format
Deprecated.Append formatted content to the buffer.- Parameters:
pattern- a format string according to theFormattersyntaxargs- arguments referenced by the format specifiers in the format string- Returns:
- the current builder
- See Also:
-
build
String build()Deprecated.Get the message constructed by this builder. The underlying buffer is not reset with this method, i.e. if you continue using this builder you just append content to the existing one.- Returns:
- the message
- Since:
- 4.0.0
-
toString
Deprecated.Rather usebuild()Same asbuild().
-
org.apache.maven.message.MessageBuilderFactory(Maven 3.10.0 and later) ororg.apache.maven.api.services.MessageBuilderFactory(Maven 4) instead