Community
Participate
Working Groups
*******************************************************************************/
package org.eclipse.equinox.internal.p2.updatesite;
import java.io.File;
import java.net.URL;
import org.eclipse.equinox.internal.p2.core.helpers.URLUtil;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
return bundleContext;
}
/**
* Returns a reasonable human-readable repository name for the given location.
*/
public static String getRepositoryName(URL location) {
File file = URLUtil.toFile(location);
return file == null ? location.toExternalForm() : file.getAbsolutePath();
private static final String PROP_SITE_CHECKSUM = "site.checksum"; //$NON-NLS-1$
public UpdateSiteMetadataRepository(URL location, IProgressMonitor monitor) throws ProvisionException {
super("update site: " + location.toExternalForm(), TYPE, VERSION.toString(), location, null, null, null); //$NON-NLS-1$
super(Activator.getRepositoryName(location), TYPE, VERSION.toString(), location, null, null, null);
// todo progress monitoring
// loading validates before we create repositories
UpdateSite updateSite = UpdateSite.load(location, null);
private final IArtifactRepository artifactRepository;
public UpdateSiteArtifactRepository(URL location, IProgressMonitor monitor) throws ProvisionException {