Class EMFTVMBuildListener

java.lang.Object
org.eclipse.m2m.atl.emftvm.ant.EMFTVMBuildListener
All Implemented Interfaces:
EventListener, org.apache.tools.ant.BuildListener

public class EMFTVMBuildListener extends Object implements org.apache.tools.ant.BuildListener
Ant build change listener for EMFTVM tasks.
  • Constructor Details

    • EMFTVMBuildListener

      public EMFTVMBuildListener(org.apache.tools.ant.Project project)
      Creates a new EMFTVMBuildListener.
      Parameters:
      project - the Ant project
  • Method Details

    • attachBuildListener

      public static void attachBuildListener(org.apache.tools.ant.Project project)
      Attach the log to a given project if necessary.
      Parameters:
      project - the current project
    • buildFinished

      public void buildFinished(org.apache.tools.ant.BuildEvent event)
      Removes the log handler from the logger.
      Specified by:
      buildFinished in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the build finished event
    • buildStarted

      public void buildStarted(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      buildStarted in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the build started event
    • messageLogged

      public void messageLogged(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      messageLogged in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the message logged event
    • targetFinished

      public void targetFinished(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      targetFinished in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the target finished event
    • targetStarted

      public void targetStarted(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      targetStarted in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the target started event
    • taskFinished

      public void taskFinished(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      taskFinished in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the task finished event
    • taskStarted

      public void taskStarted(org.apache.tools.ant.BuildEvent event)
      Does nothing.
      Specified by:
      taskStarted in interface org.apache.tools.ant.BuildListener
      Parameters:
      event - the task started event
    • getProject

      public org.apache.tools.ant.Project getProject()
      Returns the Ant project.
      Returns:
      the project
    • getLogHandler

      public Handler getLogHandler()
      Returns the log handler.
      Returns:
      the logHandler