| java.lang.Object java.util.EventObject org.apache.tools.ant.BuildEvent
BuildEvent | public class BuildEvent extends EventObject (Code) | | Class representing an event occurring during a build. An
event is built by specifying either a project, a task or a target.
A project level event will only have a project reference;
a target level event will have project and target references;
a task level event will have project, target and task references.
|
Constructor Summary | |
public | BuildEvent(Project project) Construct a BuildEvent for a project level event. | public | BuildEvent(Target target) Construct a BuildEvent for a target level event. | public | BuildEvent(Task task) Construct a BuildEvent for a task level event. |
BuildEvent | public BuildEvent(Project project)(Code) | | Construct a BuildEvent for a project level event.
Parameters: project - the project that emitted the event.Should not be null . |
BuildEvent | public BuildEvent(Target target)(Code) | | Construct a BuildEvent for a target level event.
The project associated with the event is derived
from the given target.
Parameters: target - the target that emitted the event.Must not be null . |
BuildEvent | public BuildEvent(Task task)(Code) | | Construct a BuildEvent for a task level event.
The project and target associated with the event
are derived from the given task.
Parameters: task - the task that emitted the event.Must not be null . |
getPriority | public int getPriority()(Code) | | Returns the priority of the logging message. This field will only
be set for "messageLogged" events. The meaning of this priority
is as specified by the constants in the
Project Project class.
the priority associated with this event. See Also: BuildListener.messageLogged(BuildEvent) |
getProject | public Project getProject()(Code) | | Returns the project that fired this event.
the project that fired this event |
getTarget | public Target getTarget()(Code) | | Returns the target that fired this event.
the project that fired this event, or null if this event is a project level event. |
getTask | public Task getTask()(Code) | | Returns the task that fired this event.
the task that fired this event, or null if this event is a project or target level event. |
setMessage | public void setMessage(String message, int priority)(Code) | | Sets the message and priority associated with this event.
This is used for "messageLogged" events.
Parameters: message - the message to be associated with this event.Should not be null . Parameters: priority - the priority to be associated with this event,as defined in the Project Project class. See Also: BuildListener.messageLogged(BuildEvent) |
|
|