aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
index 381358bfd4..b6bf39d18a 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventId.java
@@ -137,11 +137,22 @@ public final class BuildEventId implements Serializable {
return targetPatternExpanded(targetPattern, true);
}
+ public static BuildEventId targetConfigured(Label label) {
+ BuildEventStreamProtos.BuildEventId.TargetConfiguredId configuredId =
+ BuildEventStreamProtos.BuildEventId.TargetConfiguredId.newBuilder()
+ .setLabel(label.toString())
+ .build();
+ return new BuildEventId(
+ BuildEventStreamProtos.BuildEventId.newBuilder().setTargetConfigured(configuredId).build());
+ }
- public static BuildEventId targetCompleted(Label target) {
+ public static BuildEventId targetCompleted(Label target, BuildEventId configuration) {
+ BuildEventStreamProtos.BuildEventId.ConfigurationId configId =
+ configuration.protoid.getConfiguration();
BuildEventStreamProtos.BuildEventId.TargetCompletedId targetId =
BuildEventStreamProtos.BuildEventId.TargetCompletedId.newBuilder()
.setLabel(target.toString())
+ .setConfiguration(configId)
.build();
return new BuildEventId(
BuildEventStreamProtos.BuildEventId.newBuilder().setTargetCompleted(targetId).build());