Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » create a site.p2 from the target platform (again)
create a site.p2 from the target platform (again) [message #989996] Mon, 10 December 2012 11:40
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

In a previous post, http://www.eclipse.org/forums/index.php/m/987737/ ,
we discussed how to create a p2 repository from the target platform (I
also blogged about the mechanism I finally used,
http://www.lorenzobettini.it/2012/11/materializing-and-provisioning-your-target-platform-as-local-p2-site-with-buckminster/
)

however, I think there's an easier way of doing that with Buckminster,
but I haven't read about this around, so I was wondering whether it
makes sense: since Buckminster is able to materialize dependencies, and
binary dependencies go into the target platform, why not expressing the
target platform as a feature project, and a feature.xml like this, for
instance

<?xml version="1.0" encoding="UTF-8"?>
<feature
id=... SKIPPED ...

<includes id="org.eclipse.rcp" version="0.0.0"/>
<includes id="org.eclipse.rcp.source" version="0.0.0"/>
<includes id="org.eclipse.equinox.executable" version="0.0.0"/>
<includes id="org.eclipse.emf.sdk" version="0.0.0"/>
</feature>

and have a build component which depends on this feature? Then having a
cquery to materialize the build component will also materialize the
target platform expressed by that feature project...

Then, running site.p2 action on that feature project will also give you
a repository with the target platform and then building a product with
the p2 director relying (also) on this site.p2 will not give you bad
surprises; indeed, this part usually gives you error about required
features not found, and one has to manually fill the feature.xml used to
build the product with missing bundles.

I've made an example (that I'd love to share) and it works perfectly,
but I was wondering whether this makes sense...

thanks in advance
Lorenzo


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:equinox repository prefs are not installed
Next Topic:Running ExternalTools headless
Goto Forum:
  


Current Time: Fri Apr 26 23:56:01 GMT 2024

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

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

Back to the top