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.LogwrappedLog
-
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 voiddebug(java.lang.String content)The message will be output with debug level (maven debugging must be turned on to see message)voiderror(java.lang.String content)The message will be output with error levelvoidfail(java.lang.String content)The message will be output with a failure level (exception will occur)voidinfo(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)voidwarning(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:EchoOutputThe message will be output with a failure level (exception will occur)- Specified by:
failin interfaceEchoOutput
-
error
public void error(java.lang.String content)
Description copied from interface:EchoOutputThe message will be output with error level- Specified by:
errorin interfaceEchoOutput
-
warning
public void warning(java.lang.String content)
Description copied from interface:EchoOutputThe message will be output with warning level- Specified by:
warningin interfaceEchoOutput
-
info
public void info(java.lang.String content)
Description copied from interface:EchoOutputThe message will be output with info level (default level)- Specified by:
infoin interfaceEchoOutput
-
debug
public void debug(java.lang.String content)
Description copied from interface:EchoOutputThe message will be output with debug level (maven debugging must be turned on to see message)- Specified by:
debugin 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
-
-