Modifier and Type | Field and Description |
---|---|
private Throwable | exception
The exception associated with this event, if any. |
private String | message
Message associated with the event. |
private int | priority
The priority of the message, for "messageLogged" events. |
private final Project | project
Project which emitted the event. |
private static final long | |
private final Target | target
Target which emitted the event, if specified. |
private final Task | task
Task which emitted the event, if specified. |
Access | Constructor and Description |
---|---|
public | BuildEvent(Project
the project that emitted the event.
Should not be project)null .Construct a BuildEvent for a project level event. |
public | BuildEvent(Target
the target that emitted the event.
Must not be target)null .Construct a BuildEvent for a target level event. |
public | BuildEvent(Task
the task that emitted the event.
Must not be task)null .Construct a BuildEvent for a task level event. |
Modifier and Type | Method and Description |
---|---|
public Throwable | Returns: the exception associated with this exception, ornull if no exception has been set.Returns the exception that was thrown, if any. |
public String | Returns: the message associated with this event, ornull
if no message has been set.Returns the logging message. |
public int | Returns: the priority associated with this event.Returns the priority of the logging message. |
public Project | |
public Target | Returns: the project that fired this event, ornull
if this event is a project level event.Returns the target that fired this event. |
public Task | Returns: the task that fired this event, ornull
if this event is a project or target level event.Returns the task that fired this event. |
public void | setException(Throwable
The exception to be associated with this event.
May be exception)null .Sets the exception associated with this event. |
public void | setMessage(String
the message to be associated with this event.
Should not be message, int null .the priority to be associated with this event,
as defined in the priority)Project class.Sets the message and priority associated with this event. |
exception | back to summary |
---|---|
private Throwable exception The exception associated with this event, if any. This is only used for "messageLogged", "taskFinished", "targetFinished", and "buildFinished" events. |
message | back to summary |
---|---|
private String message Message associated with the event. This is only used for "messageLogged" events. |
priority | back to summary |
---|---|
private int priority The priority of the message, for "messageLogged" events. |
project | back to summary |
---|---|
private final Project project Project which emitted the event. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
target | back to summary |
---|---|
private final Target target Target which emitted the event, if specified. |
task | back to summary |
---|---|
private final Task task Task which emitted the event, if specified. |
BuildEvent | back to summary |
---|---|
public BuildEvent(Project project) Construct a BuildEvent for a project level event.
|
BuildEvent | back to summary |
---|---|
public BuildEvent(Target target) Construct a BuildEvent for a target level event. The project associated with the event is derived from the given target.
|
BuildEvent | back to summary |
---|---|
public BuildEvent(Task task) Construct a BuildEvent for a task level event. The project and target associated with the event are derived from the given task.
|
getException | back to summary |
---|---|
public Throwable getException() Returns the exception that was thrown, if any. This field will only be set for "messageLogged", "taskFinished", "targetFinished", and "buildFinished" events.
|
getMessage | back to summary |
---|---|
public String getMessage() Returns the logging message. This field will only be set for "messageLogged" events.
|
getPriority | back to summary |
---|---|
public int getPriority() 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
|
getProject | back to summary |
---|---|
public Project getProject() Returns the project that fired this event.
|
getTarget | back to summary |
---|---|
public Target getTarget() Returns the target that fired this event.
|
getTask | back to summary |
---|---|
public Task getTask() Returns the task that fired this event.
|
setException | back to summary |
---|---|
public void setException(Throwable exception) Sets the exception associated with this event. This is used for "messageLogged", "taskFinished", "targetFinished", and "buildFinished" events.
|
setMessage | back to summary |
---|---|
public void setMessage(String message, int priority) Sets the message and priority associated with this event. This is used for "messageLogged" events.
|