Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Equinox p2 Repository Selective Mirroring"
(→Getting the Mirroring Tools) |
m (→Running the Mirroring Tools) |
||
Line 16: | Line 16: | ||
-console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication | -console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication | ||
− | -metadatasource http://download.eclipse.org/eclipse/updates/3.4milestones/ | + | -metadatasource <nowiki>http://download.eclipse.org/eclipse/updates/3.4milestones/</nowiki> |
-metadatadestination file:/tmp/3.4milestonesMirror/ | -metadatadestination file:/tmp/3.4milestonesMirror/ | ||
-ius all | -ius all | ||
Line 25: | Line 25: | ||
-console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication | -console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication | ||
− | -artifactsource http://download.eclipse.org/eclipse/updates/3.4milestones/ | + | -artifactsource <nowiki>http://download.eclipse.org/eclipse/updates/3.4milestones/</nowiki> |
-artifactdestination file:/tmp/3.4milestonesMirror/ | -artifactdestination file:/tmp/3.4milestonesMirror/ | ||
-artifacts all | -artifacts all |
Revision as of 15:47, 5 June 2008
Introduction
This example demonstrates how to mirror exclusively metadata or artifact repositories using the repository mirror application available in the equinox p2 tools.
Getting the Mirroring Tools
Get the p2 agent from the provisioning section of: Equinox Stable Build: 3.4RC3.
Running the Mirroring Tools
Run from the command line by running the Admin tool with the args you have below (e.g. eclipse.exe -application org.eclipse.equinox.p2.tools.MirrorApplication -metadatasource ...).
The attached examples perform the mirroring of an artifact, or metadata repository into a target repository. The target repository will be an exact mirror of the source (metadata or artifacts). This means any information on the target repository prior to mirroring will be lost, and if there is no target repository to begin with then a new repository will be created.
For metadata only:
-console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication -metadatasource http://download.eclipse.org/eclipse/updates/3.4milestones/ -metadatadestination file:/tmp/3.4milestonesMirror/ -ius all -overwrite
For artifacts only:
-console -consolelog -application org.eclipse.equinox.p2.tools.MirrorApplication -artifactsource http://download.eclipse.org/eclipse/updates/3.4milestones/ -artifactdestination file:/tmp/3.4milestonesMirror/ -artifacts all -overwrite
For more instructions on how to use the repository mirror tool to host specific installations (e.g. only mirror eclipse sdk) see <Link>