Class AntBuildListener

  • All Implemented Interfaces:
    EventListener, org.apache.tools.ant.BuildListener

    public class AntBuildListener
    extends Object
    implements org.apache.tools.ant.BuildListener
    Ant build listener used to collect logs from Ant tasks and to redirect them to a Logger.
    • Constructor Detail

      • AntBuildListener

        public AntBuildListener​(Logger logger,
                                String category)
        Parameters:
        logger - the logger to which to log the Ant messages received
        category - the category to log to. Usually this is name of the class being logged
    • Method Detail

      • buildStarted

        public void buildStarted​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        buildStarted in interface org.apache.tools.ant.BuildListener
      • buildFinished

        public void buildFinished​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        buildFinished in interface org.apache.tools.ant.BuildListener
      • targetStarted

        public void targetStarted​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        targetStarted in interface org.apache.tools.ant.BuildListener
      • targetFinished

        public void targetFinished​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        targetFinished in interface org.apache.tools.ant.BuildListener
      • taskStarted

        public void taskStarted​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        taskStarted in interface org.apache.tools.ant.BuildListener
      • taskFinished

        public void taskFinished​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        taskFinished in interface org.apache.tools.ant.BuildListener
      • messageLogged

        public void messageLogged​(org.apache.tools.ant.BuildEvent event)
        Specified by:
        messageLogged in interface org.apache.tools.ant.BuildListener