Package echo.output

Class MavenEchoOutput

java.lang.Object
echo.output.MavenEchoOutput
All Implemented Interfaces:
EchoOutput

public class MavenEchoOutput extends Object implements EchoOutput
Wraps the Maven standard output to decouple from output functionality
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.maven.plugin.logging.Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MavenEchoOutput(org.apache.maven.plugin.logging.Log wrappedLog)
    Creates an MavenEchoOutput wrapper
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String content)
    The message will be output with debug level (maven debugging must be turned on to see message)
    void
    error(String content)
    The message will be output with error level
    void
    fail(String content)
    The message will be output with a failure level (exception will occur)
    void
    info(String content)
    The message will be output with info level (default level)
    private <E extends Throwable>
    void
     
    void
    warning(String content)
    The message will be output with warning level

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • wrappedLog

      private final org.apache.maven.plugin.logging.Log wrappedLog
  • Constructor Details

    • MavenEchoOutput

      public MavenEchoOutput(org.apache.maven.plugin.logging.Log wrappedLog)
      Creates an MavenEchoOutput wrapper
  • Method Details

    • fail

      public void fail(String content)
      Description copied from interface: EchoOutput
      The message will be output with a failure level (exception will occur)
      Specified by:
      fail in interface EchoOutput
    • error

      public void error(String content)
      Description copied from interface: EchoOutput
      The message will be output with error level
      Specified by:
      error in interface EchoOutput
    • warning

      public void warning(String content)
      Description copied from interface: EchoOutput
      The message will be output with warning level
      Specified by:
      warning in interface EchoOutput
    • info

      public void info(String content)
      Description copied from interface: EchoOutput
      The message will be output with info level (default level)
      Specified by:
      info in interface EchoOutput
    • debug

      public void debug(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 interface EchoOutput
    • throwAsUnchecked

      private <E extends Throwable> void throwAsUnchecked(Exception e) throws E
      Throws:
      E