use of com.facebook.buck.macho.ObjectPathsAbsolutifier in project buck by facebook.
the class MachOAbsolutifyObjectPathsCommand method invokeWithParams.
@Override
protected int invokeWithParams(CommandRunnerParams params) throws IOException {
try (RandomAccessFile file = new RandomAccessFile(getOutput().toFile(), "rw")) {
NulTerminatedCharsetDecoder decoder = new NulTerminatedCharsetDecoder(StandardCharsets.UTF_8.newDecoder());
ObjectPathsAbsolutifier updater = new ObjectPathsAbsolutifier(file, getOldCompDir(), getUpdatedCompDir(), params.getCell().getFilesystem(), params.getCell().getKnownRoots(), decoder);
updater.updatePaths();
}
return 0;
}
Aggregations