use of com.facebook.buck.json.JsonConcatenateStep in project buck by facebook.
the class CxxInferComputeReport method getBuildSteps.
@Override
public ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext) {
buildableContext.recordArtifact(reportOutput);
ImmutableSortedSet<Path> reportsToMergeFromDeps = FluentIterable.from(analysisToReport.getTransitiveAnalyzeRules()).transform(CxxInferAnalyze::getSourcePathToOutput).transform(context.getSourcePathResolver()::getAbsolutePath).toSortedSet(Ordering.natural());
ImmutableSortedSet<Path> reportsToMerge = ImmutableSortedSet.<Path>naturalOrder().addAll(reportsToMergeFromDeps).add(context.getSourcePathResolver().getAbsolutePath(analysisToReport.getSourcePathToOutput())).build();
return ImmutableList.<Step>builder().add(new MkdirStep(projectFilesystem, outputDirectory)).add(new JsonConcatenateStep(projectFilesystem, reportsToMerge, reportOutput, "infer-merge-reports", "Merge Infer Reports")).build();
}
Aggregations