1 | void fireMessageLogged(Target target, String message,↵ | | 1 | void fireMessageLogged(Project project, String message,↵
|
2 | int priority) {↵ | | 2 | int priority) {↵
|
3 | fireMessageLogged(target, message, null, priority);↵ | | 3 | fireMessageLogged(project, message, null, priority);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Send a "message logged" target 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 target The target 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(Target target, 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(target);↵ | | 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 | }↵
|
|
22 | /**↵ | | 22 | /**↵
|
23 | * Send a "message logged" task level event↵ | | 23 | * Send a "message logged" target level event↵
|
24 | * to the build listeners for this project.↵ | | 24 | * to the build listeners for this project.↵
|
25 | *↵ | | 25 | *↵
|
26 | * @param task The task generating the event.↵ | | 26 | * @param target The target generating the event.↵
|
27 | * Must not be <code>null</code>.↵ | | 27 | * Must not be <code>null</code>.↵
|
28 | * @param message The message to send. Should not be <code>null</code>.↵ | | 28 | * @param message The message to send. Should not be <code>null</code>.↵
|
29 | * @param priority The priority of the message.↵ | | 29 | * @param priority The priority of the message.↵
|
30 | */↵ | | 30 | */↵
|
31 | protected void fireMessageLogged(Task task, String message,↵ | | 31 | protected void fireMessageLogged(Target target, String message,↵
|
32 | int priority) {↵ | | 32 | int priority) {↵
|
33 | fireMessageLogged(task, message, null, priority);↵ | | 33 | fireMessageLogged(target, message, null, priority);↵
|
34 | }↵ | | 34 | }↵
|
|
35 | /**↵ | | 35 | /**↵
|
36 | * Send a "message logged" task level event↵ | | 36 | * Send a "message logged" target level event↵
|
37 | * to the build listeners for this project.↵ | | 37 | * to the build listeners for this project.↵
|
38 | *↵ | | 38 | *↵
|
39 | * @param task The task generating the event.↵ | | 39 | * @param target The target generating the event.↵
|
40 | * Must not be <code>null</code>.↵ | | 40 | * Must not be <code>null</code>.↵
|
41 | * @param message The message to send. Should not be <code>null</code>.↵ | | 41 | * @param message The message to send. Should not be <code>null</code>.↵
|
42 | * @param throwable The exception that caused this message. May be <code>null</code>.↵ | | 42 | * @param throwable The exception that caused this message. May be <code>null</code>.↵
|
43 | * @param priority The priority of the message.↵ | | 43 | * @param priority The priority of the message.↵
|
44 | * @since 1.7↵ | | 44 | * @since 1.7↵
|
45 | */↵ | | 45 | */↵
|
46 | protected void fireMessageLogged(Task task, String message,↵ | | 46 | protected void fireMessageLogged(Target target, String message,↵
|
47 | Throwable throwable, int priority) {↵ | | 47 | Throwable throwable, int priority) {↵
|
48 | BuildEvent event = new BuildEvent(task);↵ | | 48 | BuildEvent event = new BuildEvent(target);↵
|
49 | event.setException(throwable);↵ | | 49 | event.setException(throwable);↵
|
50 | fireMessageLoggedEvent(event, message, priority);↵ | | 50 | fireMessageLoggedEvent(event, message, priority);↵
|
51 | | | 51 |
|