Package org.eclipse.m2m.atl.core.ant
Class AtlBuildListener
java.lang.Object
org.eclipse.m2m.atl.core.ant.AtlBuildListener
- All Implemented Interfaces:
EventListener,org.apache.tools.ant.BuildListener
The build listener, used to handle log and to dispose models after processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachBuildListener(org.apache.tools.ant.Project project) Attach the log to a given project if necessary.voidbuildFinished(org.apache.tools.ant.BuildEvent event) voidbuildStarted(org.apache.tools.ant.BuildEvent event) static ModelFactorygetModelFactory(String factoryName) Manages model factories: singleton are stored (generally one) during the execution of a project, and finally garbage-collected.voidmessageLogged(org.apache.tools.ant.BuildEvent event) voidtargetFinished(org.apache.tools.ant.BuildEvent event) voidtargetStarted(org.apache.tools.ant.BuildEvent event) voidtaskFinished(org.apache.tools.ant.BuildEvent event) voidtaskStarted(org.apache.tools.ant.BuildEvent event)
-
Constructor Details
-
AtlBuildListener
protected AtlBuildListener()Constructor.
-
-
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) - Specified by:
buildFinishedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
getModelFactory
public static ModelFactory getModelFactory(String factoryName) throws org.apache.tools.ant.BuildException Manages model factories: singleton are stored (generally one) during the execution of a project, and finally garbage-collected.- Parameters:
factoryName- the factory name- Returns:
- the factory instance
- Throws:
org.apache.tools.ant.BuildException
-
buildStarted
public void buildStarted(org.apache.tools.ant.BuildEvent event) - Specified by:
buildStartedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
messageLogged
public void messageLogged(org.apache.tools.ant.BuildEvent event) - Specified by:
messageLoggedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
targetFinished
public void targetFinished(org.apache.tools.ant.BuildEvent event) - Specified by:
targetFinishedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
targetStarted
public void targetStarted(org.apache.tools.ant.BuildEvent event) - Specified by:
targetStartedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
taskFinished
public void taskFinished(org.apache.tools.ant.BuildEvent event) - Specified by:
taskFinishedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-
taskStarted
public void taskStarted(org.apache.tools.ant.BuildEvent event) - Specified by:
taskStartedin interfaceorg.apache.tools.ant.BuildListener- See Also:
-