Package org.apache.tools.ant
Interface BuildListener
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
BuildLogger,SubBuildListener
- All Known Implementing Classes:
AnsiColorLogger,AntClassLoader,AntClassLoader2,AntClassLoader5,AntSoundPlayer,BigProjectLogger,CommonsLoggingListener,DefaultLogger,FailureRecorder,Log4jListener,MailLogger,ModifiedSelector,NoBannerLogger,ProfileLogger,Recorder,RecorderEntry,SilentLogger,SimpleBigProjectLogger,SplitClassLoader,TimestampedLogger,XmlLogger
Instances of classes that implement this interface can register
to be notified when things happened during a build.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuildFinished(BuildEvent event) Signals that the last target has finished.voidbuildStarted(BuildEvent event) Signals that a build has started.voidmessageLogged(BuildEvent event) Signals a message logging event.voidtargetFinished(BuildEvent event) Signals that a target has finished.voidtargetStarted(BuildEvent event) Signals that a target is starting.voidtaskFinished(BuildEvent event) Signals that a task has finished.voidtaskStarted(BuildEvent event) Signals that a task is starting.
-
Method Details
-
buildStarted
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 benull.
-
buildFinished
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 benull.- See Also:
-
targetStarted
Signals that a target is starting.- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
-
targetFinished
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 benull.- See Also:
-
taskStarted
Signals that a task is starting.- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
-
taskFinished
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 benull.- See Also:
-
messageLogged
Signals a message logging event.- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
-