Class BigProjectLogger

    • Field Detail

      • HEADER

        public static final java.lang.String HEADER
        Header string for the log. "======================================================================"
        See Also:
        Constant Field Values
      • FOOTER

        public static final java.lang.String FOOTER
        Footer string for the log. "======================================================================"
        See Also:
        Constant Field Values
    • Constructor Detail

      • BigProjectLogger

        public BigProjectLogger()
    • Method Detail

      • getBuildFailedMessage

        protected java.lang.String getBuildFailedMessage()
        This is an override point: the message that indicates whether a build failed. Subclasses can change/enhance the message.
        Overrides:
        getBuildFailedMessage in class DefaultLogger
        Returns:
        The classic "BUILD FAILED" plus a timestamp
      • getBuildSuccessfulMessage

        protected java.lang.String getBuildSuccessfulMessage()
        This is an override point: the message that indicates that a build succeeded. Subclasses can change/enhance the message.
        Overrides:
        getBuildSuccessfulMessage in class DefaultLogger
        Returns:
        The classic "BUILD SUCCESSFUL" plus a timestamp
      • subBuildStarted

        public void subBuildStarted​(BuildEvent event)
        Signals that a subbuild has started. This event is fired before any targets have started.
        Specified by:
        subBuildStarted in interface SubBuildListener
        Parameters:
        event - An event with any relevant extra information. Must not be null.
      • extractNameOrDefault

        protected java.lang.String extractNameOrDefault​(BuildEvent event)
        Get the name of an event
        Parameters:
        event - the event name
        Returns:
        the name or a default string
      • subBuildFinished

        public void subBuildFinished​(BuildEvent event)
        Signals that the last target has finished. This event will still be fired if an error occurred during the build.
        Specified by:
        subBuildFinished in interface SubBuildListener
        Parameters:
        event - An event with any relevant extra information. Must not be null.
        See Also:
        BuildEvent.getException()
      • getHeader

        protected java.lang.String getHeader()
        Override point: return the header string for the entry/exit message
        Returns:
        the header string
      • getFooter

        protected java.lang.String getFooter()
        Override point: return the footer string for the entry/exit message
        Returns:
        the footer string