use of com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.OutputGroup in project bazel by bazelbuild.
the class TargetCompleteEvent method getOutputFilesByGroup.
private Iterable<OutputGroup> getOutputFilesByGroup(PathConverter pathConverter) {
ImmutableList.Builder<OutputGroup> groups = ImmutableList.builder();
for (ArtifactsInOutputGroup artifactsInOutputGroup : outputs) {
OutputGroup.Builder groupBuilder = OutputGroup.newBuilder();
groupBuilder.setName(artifactsInOutputGroup.getOutputGroup());
File.Builder fileBuilder = File.newBuilder();
for (Artifact artifact : artifactsInOutputGroup.getArtifacts()) {
String name = artifact.getFilename();
String uri = pathConverter.apply(artifact.getPath());
groupBuilder.addOutputFile(fileBuilder.setName(name).setUri(uri).build());
}
groups.add(groupBuilder.build());
}
return groups.build();
}
Aggregations