1 | void fireMessageLogged(Task task, String message,↵ | | 1 | void fireMessageLogged(Project project, String message,↵
|
2 | int priority) {↵ | | 2 | int priority) {↵
|
3 | fireMessageLogged(task, message, null, priority);↵ | | 3 | fireMessageLogged(project, message, null, priority);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Send a "message logged" task level event↵ | | 6 | * Send a "message logged" project level event↵
|
7 | * to the build listeners for this project.↵ | | 7 | * to the build listeners for this project.↵
|
8 | *↵ | | 8 | *↵
|
9 | * @param task The task generating the event.↵ | | 9 | * @param project The project generating the event.↵
|
10 | * Must not be <code>null</code>.↵ | | 10 | * Should not be <code>null</code>.↵
|
11 | * @param message The message to send. Should not be <code>null</code>.↵ | | 11 | * @param message The message to send. Should not be <code>null</code>.↵
|
12 | * @param throwable The exception that caused this message. May be <code>null</code>.↵ | | 12 | * @param throwable The exception that caused this message. May be <code>null</code>.↵
|
13 | * @param priority The priority of the message.↵ | | 13 | * @param priority The priority of the message.↵
|
14 | * @since 1.7↵ | | 14 | * @since 1.7↵
|
15 | */↵ | | 15 | */↵
|
16 | protected void fireMessageLogged(Task task, String message,↵ | | 16 | protected void fireMessageLogged(Project project, String message,↵
|
17 | Throwable throwable, int priority) {↵ | | 17 | Throwable throwable, int priority) {↵
|
18 | BuildEvent event = new BuildEvent(task);↵ | | 18 | BuildEvent event = new BuildEvent(project);↵
|
19 | event.setException(throwable);↵ | | 19 | event.setException(throwable);↵
|
20 | fireMessageLoggedEvent(event, message, priority);↵ | | 20 | fireMessageLoggedEvent(event, message, priority);↵
|
21 | | | 21 |
|