org.apache.tools.ant
public class BuildEvent extends EventObject
Constructor Summary | |
---|---|
BuildEvent(Project project)
Construct a BuildEvent for a project level event.
| |
BuildEvent(Target target)
Construct a BuildEvent for a target level event.
| |
BuildEvent(Task task)
Construct a BuildEvent for a task level event.
|
Method Summary | |
---|---|
Throwable | getException()
Returns the exception that was thrown, if any. |
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.
|
void | setException(Throwable exception)
Sets the exception associated with this event. |
void | setMessage(String message, int priority)
Sets the message and priority associated with this event.
|
Parameters: project the project that emitted the event.
Should not be null
.
Parameters: target the target that emitted the event.
Must not be null
.
Parameters: task the task that emitted the event.
Must not be null
.
Returns: the exception associated with this exception, or
null
if no exception has been set.
See Also: messageLogged taskFinished targetFinished buildFinished
Returns: the message associated with this event, or null
if no message has been set.
See Also: messageLogged
Project
class.
Returns: the priority associated with this event.
See Also: messageLogged
Returns: the project that fired this event
Returns: the project that fired this event, or null
if this event is a project level event.
Returns: the task that fired this event, or null
if this event is a project or target level event.
Parameters: exception The exception to be associated with this event.
May be null
.
See Also: messageLogged taskFinished targetFinished buildFinished
Parameters: message the message to be associated with this event.
Should not be null
. priority the priority to be associated with this event,
as defined in the Project
class.
See Also: messageLogged