Package echo.output

Class 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 level
      void 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>
      void
      throwAsUnchecked​(java.lang.Exception e)  
      void warning​(java.lang.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 Detail

      • wrappedLog

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

      • MavenEchoOutput

        public MavenEchoOutput​(org.apache.maven.plugin.logging.Log wrappedLog)
        Creates an MavenEchoOutput wrapper
    • 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 interface EchoOutput
      • 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 interface EchoOutput
      • 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 interface EchoOutput
      • 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 interface EchoOutput
      • 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 interface EchoOutput
      • 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