aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-08-31 23:12:18 +0200
committerGravatar Vladimir Moskva <vladmos@google.com>2017-09-01 12:28:26 +0200
commitcb375a453491fc3be5e9bd0e76e235ae0d18670b (patch)
tree93058b62490f12c330ca25e72d1ff459580d3466 /src/main/java/com/google/devtools/build/lib/buildeventstream
parent7c953bfae9d650813b2fe6ab934cbac5db1497ba (diff)
Publish TARGET_SKIPPED status to Goops and Master Log for targets with incompatible CPU constraints.
PiperOrigin-RevId: 167189106
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
index d7cbdb1139..5816ecd3bd 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
@@ -15,21 +15,36 @@
package com.google.devtools.build.lib.buildeventstream;
import com.google.common.collect.ImmutableList;
+import com.google.devtools.build.lib.cmdline.Label;
+
+import javax.annotation.Nullable;
/** A {@link BuildEvent} reporting an event not coming due to the build being aborted. */
public class AbortedEvent extends GenericBuildEvent {
private final BuildEventStreamProtos.Aborted.AbortReason reason;
private final String description;
+ @Nullable private final Label label;
public AbortedEvent(
- BuildEventId id, BuildEventStreamProtos.Aborted.AbortReason reason, String description) {
+ BuildEventId id, BuildEventStreamProtos.Aborted.AbortReason reason, String description,
+ @Nullable Label label) {
super(id, ImmutableList.<BuildEventId>of());
this.reason = reason;
this.description = description;
+ this.label = label;
+ }
+
+ public AbortedEvent(
+ BuildEventId id, BuildEventStreamProtos.Aborted.AbortReason reason, String description) {
+ this(id, reason, description, null);
}
public AbortedEvent(BuildEventId id) {
- this(id, BuildEventStreamProtos.Aborted.AbortReason.UNKNOWN, "");
+ this(id, BuildEventStreamProtos.Aborted.AbortReason.UNKNOWN, "", null);
+ }
+
+ @Nullable public Label getLabel() {
+ return label;
}
@Override