Package org.eclipse.m2m.atl.emftvm.ant
Class EMFTVMBuildListener
java.lang.Object
org.eclipse.m2m.atl.emftvm.ant.EMFTVMBuildListener
- All Implemented Interfaces:
EventListener
,org.apache.tools.ant.BuildListener
Ant build change listener for EMFTVM tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionEMFTVMBuildListener
(org.apache.tools.ant.Project project) Creates a newEMFTVMBuildListener
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachBuildListener
(org.apache.tools.ant.Project project) Attach the log to a given project if necessary.void
buildFinished
(org.apache.tools.ant.BuildEvent event) Removes the log handler from the logger.void
buildStarted
(org.apache.tools.ant.BuildEvent event) Does nothing.Returns the log handler.org.apache.tools.ant.Project
Returns the Ant project.void
messageLogged
(org.apache.tools.ant.BuildEvent event) Does nothing.void
targetFinished
(org.apache.tools.ant.BuildEvent event) Does nothing.void
targetStarted
(org.apache.tools.ant.BuildEvent event) Does nothing.void
taskFinished
(org.apache.tools.ant.BuildEvent event) Does nothing.void
taskStarted
(org.apache.tools.ant.BuildEvent event) Does nothing.
-
Constructor Details
-
EMFTVMBuildListener
public EMFTVMBuildListener(org.apache.tools.ant.Project project) Creates a newEMFTVMBuildListener
.- 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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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
Returns the log handler.- Returns:
- the logHandler
-