use of org.eclipse.equinox.p2.internal.repository.tools.XZCompressor in project tycho by eclipse.
the class MirrorApplicationServiceImpl method xzCompress.
private void xzCompress(DestinationRepositoryDescriptor destination) throws FacadeException {
if (!destination.isXZCompress()) {
return;
}
try {
XZCompressor xzCompressor = new XZCompressor();
xzCompressor.setPreserveOriginalFile(destination.shouldKeepNonXzIndexFiles());
xzCompressor.setRepoFolder(destination.getLocation().getAbsolutePath());
xzCompressor.compressRepo();
} catch (IOException e) {
throw new FacadeException("XZ compression failed", e);
}
}
Aggregations