28
28
import com .google .devtools .build .lib .buildeventstream .PathConverter ;
29
29
import com .google .devtools .build .lib .events .ExtendedEventHandler .ProgressLike ;
30
30
import com .google .devtools .build .lib .vfs .Path ;
31
+ import com .google .devtools .build .lib .vfs .PathFragment ;
31
32
import java .util .Collection ;
32
33
import java .util .logging .Level ;
33
34
import java .util .logging .Logger ;
39
40
public class ActionExecutedEvent implements BuildEventWithConfiguration , ProgressLike {
40
41
private static final Logger logger = Logger .getLogger (ActionExecutedEvent .class .getName ());
41
42
43
+ private final PathFragment actionId ;
42
44
private final Action action ;
43
45
private final ActionExecutionException exception ;
44
46
private final Path primaryOutput ;
@@ -47,12 +49,14 @@ public class ActionExecutedEvent implements BuildEventWithConfiguration, Progres
47
49
private final ErrorTiming timing ;
48
50
49
51
public ActionExecutedEvent (
52
+ PathFragment actionId ,
50
53
Action action ,
51
54
ActionExecutionException exception ,
52
55
Path primaryOutput ,
53
56
Path stdout ,
54
57
Path stderr ,
55
58
ErrorTiming timing ) {
59
+ this .actionId = actionId ;
56
60
this .action = action ;
57
61
this .exception = exception ;
58
62
this .primaryOutput = primaryOutput ;
@@ -93,10 +97,10 @@ public String getStderr() {
93
97
@ Override
94
98
public BuildEventId getEventId () {
95
99
if (action .getOwner () == null ) {
96
- return BuildEventId .actionCompleted (primaryOutput );
100
+ return BuildEventId .actionCompleted (actionId );
97
101
} else {
98
102
return BuildEventId .actionCompleted (
99
- primaryOutput ,
103
+ actionId ,
100
104
action .getOwner ().getLabel (),
101
105
action .getOwner ().getConfigurationChecksum ());
102
106
}
0 commit comments