1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

Compress the repo metadata.

This commit is contained in:
Doug Schaefer 2009-05-06 19:01:09 +00:00
parent 2d2e01d6f4
commit ca99741025

View file

@ -24,6 +24,7 @@ import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifact
import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
import org.eclipse.equinox.internal.provisional.p2.core.Version;
import org.eclipse.equinox.internal.provisional.p2.core.VersionRange;
import org.eclipse.equinox.internal.provisional.p2.core.repository.IRepository;
import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.internal.provisional.p2.metadata.ILicense;
@ -79,7 +80,10 @@ public class MinGWGenerator implements IApplication {
IArtifactRepositoryManager artiRepoMgr = Activator.getDefault().getService(IArtifactRepositoryManager.class);
metaRepo = metaRepoMgr.createRepository(repoLocation, REPO_NAME, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
metaRepo.setProperty(IRepository.PROP_COMPRESSED, Boolean.TRUE.toString());
artiRepo = artiRepoMgr.createRepository(repoLocation, REPO_NAME, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
artiRepo.setProperty(IRepository.PROP_COMPRESSED, Boolean.TRUE.toString());
ILicense publicDomainLic = MetadataFactory.createLicense(null, publicDomain);
ILicense gplLic = MetadataFactory.createLicense(new URI(gplURL), gpl);