Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Combine Product and Project setup
Combine Product and Project setup [message #1819184] Thu, 09 January 2020 16:13 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1094
Registered: July 2009
Senior Member

Is it possible to have one setup file which defines the product and the project (which can be dragged onto the simple mode)?

Currently if someone wants to contribute to Dartboard he first needs to select a product and afterwards can add the project setup file via DnD. If he drag the file on the wrong location or page he gets an not so telling error.

index.php/fa/37124/0/

I think it would be nice if a user could simply drop one file onto the simpler mode and gets a fully configured Eclipse with the project setup.

Is that possible? Didn't find documentation for that in https://wiki.eclipse.org/Eclipse_Oomph_Authoring

Best regards, Lars

  • Attachment: dnd.png
    (Size: 81.14KB, Downloaded 67 times)
Re: Combine Product and Project setup [message #1819212 is a reply to message #1819184] Fri, 10 January 2020 05:30 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6478
Registered: July 2009
Senior Member
It's there, though: https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations ;-)

Re: Combine Product and Project setup [message #1819220 is a reply to message #1819212] Fri, 10 January 2020 07:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30886
Registered: July 2009
Senior Member
Look at this as an example:

http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/interim/PlatformSDKConfiguration.setup

Also, it would be great if you would familiarize yourself with how I've tried to make this same thing as easy as possible for the platform (the project for which you are a lead):

https://wiki.eclipse.org/Eclipse_Platform_SDK_Provisioning

You'll be able to exploit links like these:

https://www.eclipse.org/setups/installer/?url=https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/interim/PlatformSDKConfiguration.setup&show=true
https://www.eclipse.org/setups/installer/?url=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/configurations/OomphConfiguration.setup&show=true

I mentioned that recently on the cross projects mailing list where I shared the following link for how to create an environment in which committers can contribute to SimRel:

https://www.eclipse.org/setups/installer/?url=https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/interim/SimultaneousReleaseTrainConfiguration.setup&show=true
Re: Combine Product and Project setup [message #1819263 is a reply to message #1819220] Fri, 10 January 2020 17:11 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1094
Registered: July 2009
Senior Member

Thanks Eike and Ed, this looks really good. I try to setup a configuration myself next week.
Re: Combine Product and Project setup [message #1819292 is a reply to message #1819263] Sun, 12 January 2020 08:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30886
Registered: July 2009
Senior Member
Lars, I added this to the wiki:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Testing_a_Setup_in_a_Clean_Environment

This is a useful trick for testing how a new user will experience using your setup and helps keep your real development environment separate from your test environment.
Re: Combine Product and Project setup [message #1819327 is a reply to message #1819292] Mon, 13 January 2020 09:37 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1094
Registered: July 2009
Senior Member

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations "Creating a configuration" does not contain details on how to select a product or to add the configuration from a project model.

Is this documented somewhere? Or can this be added?
Re: Combine Product and Project setup [message #1819328 is a reply to message #1819327] Mon, 13 January 2020 09:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30886
Registered: July 2009
Senior Member
The wizard opens the setup editor and then of course all editing is done in this editor in the normal way. So of course generally you'll need the properties view to edit properties but that's nothing specific to the Configuration, that's just generally the case. The wiki does mentions that "The Configuration's Installation can reference a specific Product Version and the Configuration's Workspace can optionally reference several specific Project Streams." and describes how those are used in the Product and Project pages. So naturally those are the two things you'll want to edit in the editor.
Re: Combine Product and Project setup [message #1820975 is a reply to message #1819328] Mon, 03 February 2020 18:12 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1094
Registered: July 2009
Senior Member

Thanks, Ed and Eike, worked fine.

FYI - In addition to copying the setup from the project setup file to the Workspace node I had also to setup scope.project.stream.name and scope.project.label. Stream seems to be missing in the context menu of Workspace node in the configuration model editor.

<setupTask
xsi:type="setup:VariableTask"
name="scope.project.stream.name"
value="master"
label="scope.project.stream.name"/>
<setupTask
xsi:type="setup:VariableTask"
name="scope.project.label"
value="master"
label="scope.project.label">
<description>Label</description>
</setupTask>

Re: Combine Product and Project setup [message #1820984 is a reply to message #1820975] Tue, 04 February 2020 05:28 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30886
Registered: July 2009
Senior Member
Why would you copy a project setup to the Workspace? The wiki doesn't suggest doing that:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations

It mentions "The Configuration's Installation can reference a specific Product Version and the Configuration's Workspace can optionally reference several specific Project Streams." I.e., a Workspace reuses existing Project setups by virtue of the Workspace.streams cross reference. The wiki also mentions "Similarly, the Workspace's Project Streams are selected in the wizard and the wizard advances to the next page. " So do not copy setups because then of course you'll have to maintain two copies instead of one; simply reuse them.

Its always good to look at other examples, e.g., at this one for Oomph:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/setups/configurations/OomphConfiguration.setup

Those samples are available in every Setup editor. Even more convenient, if you use Navigate -> Open Setup -> Parent Models -> Catalog Index Eclipse, all the Configurations are shown in the Outline view.

Note that if you commit your Configuration to git.eclipse.org, it will be important to reference it from some other setup resource so that it's archived into the setups.zip. That can be accomplished with an annotation like this in your Project setup:
<?xml version="1.0" encoding="UTF-8"?>
<base:Annotation
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:base="http://www.eclipse.org/oomph/base/1.0"
    source="ConfigurationReference">
  <reference
      href="platform:/resource/setups/configurations/OomphConfiguration.setup#/"/>
</base:Annotation>

Just create an Annotation on the Project's context menu (New Child -> Annotation), drag and drop the Configuration's resource into the Project's Setup Editor, expand the resource node, and link drag (Alt-drag on Windows) the Configuration onto the Annotation to author this.


Previous Topic:Oomph generated target vs tycho
Next Topic:Complete versioning support of target / targlet with OOMPH ?
Goto Forum:
  


Current Time: Thu Feb 20 02:51:44 GMT 2020

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

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

Back to the top