Package echo.output
Class MavenEchoOutput
- java.lang.Object
-
- echo.output.MavenEchoOutput
-
- All Implemented Interfaces:
EchoOutput
public class MavenEchoOutput extends java.lang.Object implements EchoOutput
Wraps the Maven standard output to decouple from output functionality
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.plugin.logging.Log
wrappedLog
-
Constructor Summary
Constructors Constructor Description MavenEchoOutput(org.apache.maven.plugin.logging.Log wrappedLog)
Creates an MavenEchoOutput wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String content)
The message will be output with debug level (maven debugging must be turned on to see message)void
error(java.lang.String content)
The message will be output with error levelvoid
fail(java.lang.String content)
The message will be output with a failure level (exception will occur)void
info(java.lang.String content)
The message will be output with info level (default level)private <E extends java.lang.Throwable>
voidthrowAsUnchecked(java.lang.Exception e)
void
warning(java.lang.String content)
The message will be output with warning level
-
-
-
Method Detail
-
fail
public void fail(java.lang.String content)
Description copied from interface:EchoOutput
The message will be output with a failure level (exception will occur)- Specified by:
fail
in interfaceEchoOutput
-
error
public void error(java.lang.String content)
Description copied from interface:EchoOutput
The message will be output with error level- Specified by:
error
in interfaceEchoOutput
-
warning
public void warning(java.lang.String content)
Description copied from interface:EchoOutput
The message will be output with warning level- Specified by:
warning
in interfaceEchoOutput
-
info
public void info(java.lang.String content)
Description copied from interface:EchoOutput
The message will be output with info level (default level)- Specified by:
info
in interfaceEchoOutput
-
debug
public void debug(java.lang.String content)
Description copied from interface:EchoOutput
The message will be output with debug level (maven debugging must be turned on to see message)- Specified by:
debug
in interfaceEchoOutput
-
throwAsUnchecked
private <E extends java.lang.Throwable> void throwAsUnchecked(java.lang.Exception e) throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
-