Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » create p2 repository based on features of another p2 repository
create p2 repository based on features of another p2 repository [message #505013] Thu, 24 December 2009 11:56 Go to next message
Arjan Hammink is currently offline Arjan HamminkFriend
Messages: 2
Registered: December 2009
Junior Member
Hi,

We build lots of features and bundles. We create p2 repositories for a feature or set of features. These repositories will be merged to one p2 repository. This is done as follow:
	FeaturesAndBundlesPublisherApplication application = new FeaturesAndBundlesPublisherApplication();
	application.setArtifactLocation(toRepository);
	application.setMetadataLocation(toRepository);
	String[] args = new String[] { "-publishArtifacts",
				"-publishArtifactRepository", 
				"-overwriteArtifacts", "-append", 
				"-source", fromRepository};
	application.run(args);

This will merge the full repository into an existing repository.

Now we want to export from the full repository a subset to a new repository based on features. So it also copies all required bundles to the new repository.
There is a possibility by using the FeaturesAndBundlesPublisherApplication by using in stead of the "-source" argument the "-bundles" and "-features" argument.
In this case we had to find out which bundles belong to the features to export.

Any suggestion how to do this is welcome.
Re: create p2 repository based on features of another p2 repository [message #505997 is a reply to message #505013] Tue, 05 January 2010 17:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would use the mirror applications to slice out IUs and artifacts
from your main repo to a smaller repo. See
http://help.eclipse.org/galileo/index.jsp?nav=/2_0_20_2

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


icon14.gif  Re: create p2 repository based on features of another p2 repository [message #508023 is a reply to message #505997] Fri, 15 January 2010 15:27 Go to previous message
Arjan Hammink is currently offline Arjan HamminkFriend
Messages: 2
Registered: December 2009
Junior Member
Thanks Paul. Your linked triggered me to rethink our approach. Rolling Eyes

We will probably use composite repositories.
Having a repository for every functional unit (include one ore more features with its plugins). The composite repository points to all available repositories. When we want to create a delivery (subset) we copy all the required repositories and generate a composite repository on top which point to all the children. The whole structure we can put in a zip-file and make that available.

Arjan.
Previous Topic:EJB call on WAS with an RAP application
Next Topic:package versioning troubles
Goto Forum:
  


Current Time: Fri Apr 26 03:15:59 GMT 2024

Powered by FUDForum. Page generated in 0.03714 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top