Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Setup model for the Buildship project
Setup model for the Buildship project [message #1691699] Thu, 09 April 2015 07:27 Go to next message
Donat Csikos is currently offline Donat CsikosFriend
Messages: 14
Registered: February 2012
Junior Member
Hello! Our team at Gradle Inc. works on the Buildship project which will be a new Gradle integration for Eclipse. Recently we've discovered Oomph and thought it would be a great idea to set up a model for our project too. I'd like to share a few thoughts about my experience and the issues I'm facing.

First of all, the concept of Oomph is excellent. The ability to share a whole installation and workspace setup per project is really powerful and unique. Thanks you for making Eclipse even more awesome!

My concern is that it's far from being easy to build a model. The wiki page emphasizes using a model and not authoring one. The best way of figuring out how to build a setup model is to copy an existing one which is already big and try to change it. But even then one has to go though the whole installation process just to see that things were changed as expected. It would be nice to have an execution plan available even in a textual form describing the precise list of modification the installer will perform.

We code Buildship to work with all major releases from Mars back until Helios with a single code base. The way how we do it is to run our build against all these target platforms on a CI server. In case of a problem we can inspect the problem from the IDE by using a target definition file describing the particular platform. So at the end we have 6 .target files bundled to our project. This is really convenient but I haven't found the way to do the same with Oomph. Did I miss something related to targlets?

Cheers,


Donát Csikós
Re: Setup model for the Buildship project [message #1691705 is a reply to message #1691699] Thu, 09 April 2015 08:10 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.04.2015 um 09:27 schrieb Donat Csikos:
> Hello! Our team at Gradle Inc. works on the Buildship project which will be a new Gradle integration for Eclipse.
> Recently we've discovered Oomph and thought it would be a great idea to set up a model for our project too. I'd like
> to share a few thoughts about my experience and the issues I'm facing.
>
> First of all, the concept of Oomph is excellent. The ability to share a whole installation and workspace setup per
> project is really powerful and unique. Thanks you for making Eclipse even more awesome!
Thank you. It's a pleasure ;-)

> My concern is that it's far from being easy to build a model. The wiki page emphasizes using a model and not authoring
> one. The best way of figuring out how to build a setup model is to copy an existing one which is already big and try
> to change it.
You can also use the "Setup Project Model" in the New Wizard category "Oomph". It'll ask you a couple questions and
generate a setup skeleton for you, which you can then refine and test.

> But even then one has to go though the whole installation process just to see that things were changed as expected. It
> would be nice to have an execution plan available even in a textual form describing the precise list of modification
> the installer will perform.
This list of modification not only depends on the setup model but also on the exact current state of your machine. For
example, is the Git clone already in place, what does it contain, etc..

When your bundle pool is sufficiently seeded and the Git clone(s) is in place, you can easily delete the entire eclipse
and workspace folders (only keep the clone) and run the installation again. That should take only seconds.

Please also note that the Outline view of the Setup editor is more like a preview, i.e., it shows the model with all
variables resolved and expanded. It also shows unresolved variables and gives usage/xref information for declared variables.

> We code Buildship to work with all major releases from Mars back until Helios with a single code base. The way how we
> do it is to run our build against all these target platforms on a CI server. In case of a problem we can inspect the
> problem from the IDE by using a target definition file describing the particular platform. So at the end we have 6
> .target files bundled to our project. This is really convenient but I haven't found the way to do the same with Oomph.
> Did I miss something related to targlets?
With targlets you can achieve the same effect by maintaining multiple Repository Lists (one per release train) and
simply switch the active one on the Variables page of the advanced installer/updater.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Setup model for the Buildship project [message #1691706 is a reply to message #1691705] Thu, 09 April 2015 08:14 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.04.2015 um 10:10 schrieb Eike Stepper:
> When your bundle pool is sufficiently seeded and the Git clone(s) is in place, you can easily delete the entire
> eclipse and workspace folders (only keep the clone) and run the installation again. That should take only seconds.
Checking the "Offline" box on the Confirmation page speeds up the installation/update further if you're not interested
in newer p2 repo content!

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Setup model for the Buildship project [message #1691710 is a reply to message #1691706] Thu, 09 April 2015 08:34 Go to previous messageGo to next message
Donat Csikos is currently offline Donat CsikosFriend
Messages: 14
Registered: February 2012
Junior Member
Hi Eike,

Thanks you for the quick response and the tips, we really appreciate it! I'll try creating multiple Repository lists to see how can I switch between the targlets.
Cheers,

Donát
Re: Setup model for the Buildship project [message #1691711 is a reply to message #1691710] Thu, 09 April 2015 08:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.04.2015 um 10:34 schrieb Donat Csikos:
> Hi Eike,
>
> Thanks you for the quick response and the tips, we really appreciate it! I'll try creating multiple Repository lists
> to see how can I switch between the targlets. Cheers,
You wouldn't switch between the targlets, but between the repo lists within the targlets. Maybe you meant that ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Setup model for the Buildship project [message #1691946 is a reply to message #1691711] Fri, 10 April 2015 16:41 Go to previous messageGo to next message
Donat Csikos is currently offline Donat CsikosFriend
Messages: 14
Registered: February 2012
Junior Member
Thanks for the clarification, that's what I meant. Wink
In fact based on your input I was able to create a first version of the setup model and its works like charm. If you have any comments on it please let me know as later we'd like to send a request to include this model in the product catalog.
Cheers,


Donat
Re: Setup model for the Buildship project [message #1692068 is a reply to message #1691946] Mon, 13 April 2015 07:17 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Hi Donat,

I looked at your setup model and I have a couple comments. I think it would be best that you submit a bugzilla to ask
for the inclusion into the GitHub.com catalog and then we can discuss the issues there.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 10.04.2015 um 18:41 schrieb Donat Csikos:
> Thanks for the clarification, that's what I meant. ;) In fact based on your input I was able to create a
> https://raw.githubusercontent.com/donat/buildship/oomph-setup-model/buildship.setup and its works like charm. If you
> have any comments on it please let me know as later we'd like to send a request to include this model in the product
> catalog.
> Cheers,
>
>
> Donat


Re: Setup model for the Buildship project [message #1692159 is a reply to message #1692068] Tue, 14 April 2015 05:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Donat,

I've been looking at it as well and have been making a few suggested
changes locally, but then I got side tracked by other issues. Of
course it's wasn't clear from your post that this is an Eclipse project
hosted at Github, i.e., I noticed this URL works as well:

https://raw.githubusercontent.com/eclipse/buildship/master/buildship.setup

I assume it's this one that you'd want to include in the Eclipse project
catalog, right? We can attach the suggested changes to the bugzilla you
open...


On 13/04/2015 9:17 AM, Eike Stepper wrote:
> Hi Donat,
>
> I looked at your setup model and I have a couple comments. I think it
> would be best that you submit a bugzilla to ask for the inclusion into
> the GitHub.com catalog and then we can discuss the issues there.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Am 10.04.2015 um 18:41 schrieb Donat Csikos:
>> Thanks for the clarification, that's what I meant. ;) In fact based
>> on your input I was able to create a
>> https://raw.githubusercontent.com/donat/buildship/oomph-setup-model/buildship.setup
>> and its works like charm. If you have any comments on it please let
>> me know as later we'd like to send a request to include this model in
>> the product catalog.
>> Cheers,
>>
>>
>> Donat
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Oomph finds no catalogs (again)
Next Topic:Git Clone Task - redirect to private fork
Goto Forum:
  


Current Time: Thu Dec 26 22:08:18 GMT 2024

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

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

Back to the top