use of org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication in project tycho by eclipse.
the class MirrorApplicationServiceImpl method recreateArtifactRepository.
private void recreateArtifactRepository(DestinationRepositoryDescriptor destination) throws FacadeException {
// create the missing md5 checksums
if (destination.isMetaDataOnly()) {
return;
}
RepositoryDescriptor descriptor = new RepositoryDescriptor();
descriptor.setAppend(true);
descriptor.setFormat(null);
// $NON-NLS-1$
descriptor.setKind("artifact");
descriptor.setLocation(destination.getLocation().toURI());
RecreateRepositoryApplication application = new RecreateRepositoryApplication();
application.setArtifactRepository(descriptor);
try {
application.run(new NullProgressMonitor());
} catch (ProvisionException e) {
throw new FacadeException("Recreate artifact repository failed", e);
}
}
Aggregations