Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Generators and versions
Generators and versions [message #557002] Fri, 03 September 2010 15:04
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member

I am experimenting with generator elements in my buckminster components, and so far failing miserably. My goal is to integrate an NSIS
installer build into our existing buckminster RCP build. The installer requires a JRE and my idea was to provide that as a generated
component with a version matching the JRE version, so I can just depend on i.e. com.sun.jre[1.5.0,1.6.0) in my installer component to use
buckminster's resolution mechanism to pick up the best JRE available.

My setup is

com.yattasolutions.umllab.rcp - the product feature containing the feature based product definition and the buckminster RCP build action
com.yattasolutions.umllab.installer - installer build, depends on rcp and com.sun.jre:
<cs:dependency name="com.yattasolutions.umllab.rcp" componentType="eclipse.feature"/>
<cs:dependency name="com.sun.jre"/>

com.yattasolutions.releng - buckminster project defining the generators and depending on installer:
<cs:dependency name="com.yattasolutions.umllab.installer" componentType="buckminster"/>
<cs:generator generates="com.sun.jre" attribute="sun-jre-" generatesType="unknown" generatesVersion=""/>
<cs:generator generates="com.sun.jre" attribute="sun-jre-" generatesType="unknown" generatesVersion=""/>

At first I ran into a bit of trouble with versions in the generators (see bug #323853). I fixed those locally and still couldn't get it
working, so I tried just one generator component and no versions. But still no dice:

Resolving the query for com.yattasolutions.releng gives me "A selected specification is unresolved" and a yellow
com.sun.jre:unknown:generated. The resulting BOM has this:

<md:idwrapper id="92204d8a-3a26-391f-b30a-6d67dfe6a57f">
<md:generatorNode declaringCSpecId="e8d57ac5-ead9-3a1b-9142-2bc3eefd7e18" attribute="sun-jre-"
generates="com.sun.jre" generatesType="unknown"/>

Any idea what goes wrong there? Is there maybe a working example out there using generators to look at and experiment with?

Best regards,
Previous Topic:Multiphase creation of update site?
Next Topic:Git Branches/Tags
Goto Forum:

Current Time: Wed May 23 08:50:25 GMT 2018

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

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

Back to the top