diff options
author | Pascal Rapicault | 2009-05-05 14:09:27 +0000 |
---|---|---|
committer | Pascal Rapicault | 2009-05-05 14:09:27 +0000 |
commit | eab626a11d662395f3bd791368250abb0f1636da (patch) | |
tree | 1144e21cbf0f8f4a9de2f82684a31bd52b977f31 /bundles | |
parent | 54b2033c9a0aadf7e8c31fbd1f35ae177e931677 (diff) | |
download | rt.equinox.p2-eab626a11d662395f3bd791368250abb0f1636da.tar.gz rt.equinox.p2-eab626a11d662395f3bd791368250abb0f1636da.tar.xz rt.equinox.p2-eab626a11d662395f3bd791368250abb0f1636da.zip |
Bug 274300 - p2.process.artifacts task doesn't update artifacts.jar with entries for pack.gz files
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java index 89668cf0e..852f96cc8 100644 --- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java +++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/RecreateRepositoryApplication.java @@ -26,7 +26,7 @@ import org.eclipse.equinox.internal.provisional.p2.repository.IRepositoryManager import org.eclipse.osgi.util.NLS; public class RecreateRepositoryApplication { - + static final private String PUBLISH_PACK_FILES_AS_SIBLINGS = "publishPackFilesAsSiblings"; //$NON-NLS-1$ private RepositoryDescriptor descriptor; private String repoName = null; boolean removeArtifactRepo = true; @@ -92,7 +92,10 @@ public class RecreateRepositoryApplication { private void recreateRepository(IProgressMonitor monitor) throws ProvisionException { IArtifactRepositoryManager manager = Activator.getArtifactRepositoryManager(); - IArtifactRepository repository = manager.createRepository(descriptor.getRepoLocation(), repoName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY, repoProperties); + //add pack200 mappings, the existing repoProperties is not modifiable + Map newProperties = new HashMap(repoProperties); + newProperties.put(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ + IArtifactRepository repository = manager.createRepository(descriptor.getRepoLocation(), repoName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY, newProperties); if (!(repository instanceof IFileArtifactRepository)) throw new ProvisionException(NLS.bind(Messages.exception_notLocalFileRepo, repository.getLocation())); |