org.apache.tools.ant
Class BuildEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.tools.ant.BuildEvent

public class BuildEvent
extends java.util.EventObject

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BuildEvent(Project project, Target target, Task task, java.lang.String message, int priority, java.lang.Throwable exception)
          Constructs a new build event.
 
Method Summary
 java.lang.Throwable getException()
          Returns the exception that was thrown, if any.
 java.lang.String getMessage()
          Returns the logging message.
 int getPriority()
          Returns the priority of the logging message.
 Project getProject()
          Returns the project that fired this event.
 Target getTarget()
          Returns the target that fired this event.
 Task getTask()
          Returns the task that fired this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildEvent

public BuildEvent(Project project,
                  Target target,
                  Task task,
                  java.lang.String message,
                  int priority,
                  java.lang.Throwable exception)
Constructs a new build event. Fields that are not relevant can be set to null, except for the project field which is required.
Method Detail

getProject

public Project getProject()
Returns the project that fired this event.

getTarget

public Target getTarget()
Returns the target that fired this event.

getTask

public Task getTask()
Returns the task that fired this event.

getMessage

public java.lang.String getMessage()
Returns the logging message. This field will only be set for "messageLogged" events.
See Also:
BuildListener.messageLogged(BuildEvent)

getPriority

public int getPriority()
Returns the priority of the logging message. This field will only be set for "messageLogged" events.
See Also:
BuildListener.messageLogged(BuildEvent)

getException

public java.lang.Throwable getException()
Returns the exception that was thrown, if any. This field will only be set for "taskFinished", "targetFinished", and "buildFinished" events.
See Also:
BuildListener.taskFinished(BuildEvent), BuildListener.targetFinished(BuildEvent), BuildListener.buildFinished(BuildEvent)


Copyright © 2000 Apache Software Foundation. All Rights Reserved.