With the p2 ant tasks, it’s pretty simple to mirror the plugins for a feature.
But how do I mirror everything necessary to install a feature?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Couldn’t get
p2.mirrorworking; the task either mirrors too much (like all versions of a feature even if you’re only interested in the last or a specific one) and/or too little (like just the feature but none of the dependencies).My solution was like this:
eclipse-templateeclipse-installeclipse-installcd eclipse-template ; find . -type f -exec rm "../eclipse-install/{}").That leaves you with the feature and plugin files. Use
org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisherto turn that into a p2 repo (see the docs for details).[UPDATE 2011-11-01] There is another solution if you don’t need to run this from the command line.
That will export all the selected features with the exact version that you selected plus all dependencies in a folder of your choice.
The target editor is a bit clumsy and slow but it works.
Keep the file under version control because the target editor sometimes messes up.