use of com.facebook.buck.distributed.thrift.OrderedStringMapEntry in project buck by facebook.
the class DistBuildCellIndexer method dumpConfig.
private static BuildJobStateBuckConfig dumpConfig(BuckConfig buckConfig) {
BuildJobStateBuckConfig jobState = new BuildJobStateBuckConfig();
jobState.setUserEnvironment(buckConfig.getEnvironment());
Map<String, List<OrderedStringMapEntry>> rawConfig = Maps.transformValues(buckConfig.getRawConfigForDistBuild(), input -> {
List<OrderedStringMapEntry> result = new ArrayList<>();
for (Map.Entry<String, String> entry : input.entrySet()) {
result.add(new OrderedStringMapEntry(entry.getKey(), entry.getValue()));
}
return result;
});
jobState.setRawBuckConfig(rawConfig);
jobState.setArchitecture(buckConfig.getArchitecture().name());
jobState.setPlatform(buckConfig.getPlatform().name());
return jobState;
}
Aggregations