Skip to main content
summaryrefslogtreecommitdiffstats
path: root/p2
diff options
context:
space:
mode:
authorDoug Schaefer2009-05-06 15:01:09 -0400
committerDoug Schaefer2009-05-06 15:01:09 -0400
commitca997410255af8f91ff9e714a1e9476f8eaafa54 (patch)
treea56f15ebba91ba25d00ffd493458ccfecbb3bb43 /p2
parent2d2e01d6f419680a06e82f8080e5480b97d09e1e (diff)
downloadorg.eclipse.cdt-ca997410255af8f91ff9e714a1e9476f8eaafa54.tar.gz
org.eclipse.cdt-ca997410255af8f91ff9e714a1e9476f8eaafa54.tar.xz
org.eclipse.cdt-ca997410255af8f91ff9e714a1e9476f8eaafa54.zip
Compress the repo metadata.
Diffstat (limited to 'p2')
-rw-r--r--p2/org.eclipse.cdt.p2.generator/src/org/eclipse/cdt/p2/generator/MinGWGenerator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/p2/org.eclipse.cdt.p2.generator/src/org/eclipse/cdt/p2/generator/MinGWGenerator.java b/p2/org.eclipse.cdt.p2.generator/src/org/eclipse/cdt/p2/generator/MinGWGenerator.java
index 725bbc259b..611fac8455 100644
--- a/p2/org.eclipse.cdt.p2.generator/src/org/eclipse/cdt/p2/generator/MinGWGenerator.java
+++ b/p2/org.eclipse.cdt.p2.generator/src/org/eclipse/cdt/p2/generator/MinGWGenerator.java
@@ -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);

Back to the top