Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Deterministic Product Build
Deterministic Product Build [message #1749896] Tue, 13 December 2016 15:24 Go to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

Hello all,

I want to provide a deterministic product build. Currently, as I understand the oomph engine, I can specify a version to a plugin. But in the case of the plugin having unrestricted dependencies the engine would load the most recent of those dependencies.

I would like to provide a stable product that will be the same on each machine, no matter where or when I run the installer. Is there a way to extract a product from a given eclipse installation?

I also heart, that it should be possible to point to a zip file instead of a setup ecore model. How would I do that?

Thanks in advance


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: Deterministic Product Build [message #1749939 is a reply to message #1749896] Wed, 14 December 2016 07:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
The stability of p2's resolution depends on the stability of the update sites you point at, so one way to control this is to use only deterministic update sites. I.e., as long as the same update sites (with the same contents) are involved for each machine, the same p2 resolution will result. Mirroring and composing/aggregating update sites could accomplish that goal. Another approach is to specify a much larger set of requirements with very narrow version ranges (even to the point of allowing just a specific version). Note that you can open a profile folder (e.g., the profile of an installation in ~/org.eclipse.equinox.p2.engine/profileRegistry/C__Users_merks_eclipse_committers-neon_eclipse.profile) in the repository explorer so see all the exact versions installed. Unfortunately the drag and drop of this long list will not include version ranges. You'd have to drag and drop each version, which is rather tedious. There is a Bugzilla enhancement request about that...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Deterministic Product Build [message #1750949 is a reply to message #1749939] Mon, 02 January 2017 15:47 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

And what about the zip solution? I heard from a colleague who talked to you at eclipse con that it would be possible to use a zipped eclipse as some kind of setup file.

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: Deterministic Product Build [message #1750970 is a reply to message #1750949] Tue, 03 January 2017 08:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Well, Oomph itself will use a p2 task to create an installation. Of course installations are also distributed at Eclipse as zip files and tar files, so in theory you could create an installation that way, but without a p2 task, the installer will have no idea that an installation is being created. The latest version of the Repository Explorer (from a nightly build) includes the current installation profile as a repository choice. And the context menu supports multiple selection and Copy with Version Range (where the range is determined by control in the lower right of the view), so by setting that to Qualifier, it's easy to create a set of requirements that locks in highly specific versions.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[SOLVED] How to change user e-mail address
Next Topic:Product Setup Update
Goto Forum:
  


Current Time: Sun Dec 08 15:58:24 GMT 2024

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

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

Back to the top