Interface BuildListener

    • Method Detail

      • buildStarted

        void buildStarted​(BuildEvent event)
        Signals that a build has started. This event is fired before any targets have started.

        This event is fired before the project instance is fully configured. In particular no properties have been set and the project may not know its name or default target, yet.

        Parameters:
        event - An event with any relevant extra information. Must not be null.
      • buildFinished

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

        void targetStarted​(BuildEvent event)
        Signals that a target is starting.
        Parameters:
        event - An event with any relevant extra information. Must not be null.
        See Also:
        BuildEvent.getTarget()
      • targetFinished

        void targetFinished​(BuildEvent event)
        Signals that a target has finished. This event will still be fired if an error occurred during the build.
        Parameters:
        event - An event with any relevant extra information. Must not be null.
        See Also:
        BuildEvent.getException()
      • taskStarted

        void taskStarted​(BuildEvent event)
        Signals that a task is starting.
        Parameters:
        event - An event with any relevant extra information. Must not be null.
        See Also:
        BuildEvent.getTask()
      • taskFinished

        void taskFinished​(BuildEvent event)
        Signals that a task has finished. This event will still be fired if an error occurred during the build.
        Parameters:
        event - An event with any relevant extra information. Must not be null.
        See Also:
        BuildEvent.getException()