Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Apply setup to workspace
Apply setup to workspace [message #1724006] Fri, 19 February 2016 16:44 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi anybody,

I want to place somewhere in git setups, that can be used by other developers in our company.
Can you please tell me how I can apply these .setup files to a new created workspace?

Thanks in advance
Cheers
Markus

[Updated on: Fri, 19 February 2016 17:41]

Report message to a moderator

Re: Apply setup to workspace [message #1724034 is a reply to message #1724006] Sat, 20 February 2016 05:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Markus,

Your (project) setup files must be included in some (project) catalog. Either you maintain your own catalog or you
logically add it to an existing catalog as a "user project". Use the green plus button on the Projects page of the
advanced installer or in the "Projects Into Workspace" import wizard. From either of these facilities you can also
"connect" your workspace to these project setups.

Cheers
/Eike

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



Am 19.02.2016 um 17:44 schrieb Markus Oley:
> Hi anybody,
> I want to place somewhere in git setups, that can be used by other developers in our company. Can you please tell mw
> who I can apply these .setup files to a new created workspace?
>
> Thanks in advance
> Cheers
> Markus


Re: Apply setup to workspace [message #1724042 is a reply to message #1724034] Sat, 20 February 2016 07:30 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Eike,

thank you I will try
Re: Apply setup to workspace [message #1724768 is a reply to message #1724034] Thu, 25 February 2016 20:13 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Eike,

can you give me a docu link to how I can manage my own product catalog without going via eclipse.org or github?

Thank you

Cheers
Markus
Re: Apply setup to workspace [message #1724796 is a reply to message #1724768] Fri, 26 February 2016 06:54 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 25.02.2016 um 21:13 schrieb Markus Oley:
> Hi Eike,
> can you give me a docu link to how I can manage my own product catalog without going via eclipse.org or github?
Please start here: https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs

I think this forum has a few more threads about this topic, too.

Cheers
/Eike

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


Re: Apply setup to workspace [message #1724868 is a reply to message #1724796] Fri, 26 February 2016 16:12 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Eike,

thanks for your post.
I really want to use oomph, because I think it's a good idea and could ease the life of our developers a lot.

I read it and have to admit that it seems to me really complicated to do, what I want to do. I want to get certain kinds of configuration (especially p2 actions) to our developer and don't think I can get them something done with mapping and so on...

So I searched a little bit further and found https://timdelbruegger.wordpress.com/2015/08/16/automating-project-specific-eclipse-setups-with-oomph/ which seems to me a little bit simpler, but I have the problem that the installer doesn't work good for me, because I live behind a proxy and even after configuring the proxy I get exceptions (NullPointerException)....

I found that there are three locations (workspace, installation and user) where these configurations are located. So I tried to add a snippet of xml myself into one of these locations:

<setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Xmx"
      value="1024m"
      vm="true">
    <description>Set the heap space needed to work with the projects of modeling</description>
  </setupTask>
  <setupTask
      xsi:type="setup.p2:P2Task">
    <requirement
        name="org.eclipse.xtext.sdk.feature.group"
        versionRange="[2.9.0,2.9.99]"/>
    <repository       url="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.9.0/"/>
    <description>Install the tools needed in the IDE to work with the source code for modeling</description>
  </setupTask>



whereas the first task was configured (memory) but the second one was removed from these locations after starting workspace and Performing setup tasks...

Can you tell me if I mustn't edit these files by myself or do I have an invalid xml snippet?

Cheers
Markus
Re: Apply setup to workspace [message #1724873 is a reply to message #1724868] Fri, 26 February 2016 16:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 26.02.2016 um 17:12 schrieb Markus Oley:
> Hi Eike,
> thanks for your post. I really want to use oomph, because I think it's a good idea and could ease the life of our
> developers a lot.
> I read it and have to admit that it seems to me really complicated to do, what I want to do. I want to get certain
> kinds of configuration (especially p2 actions) to our developer and don't think I can get them something done with
> mapping and so on...
Sorry, I don't understand this.

> So I searched a little bit further and found
> https://timdelbruegger.wordpress.com/2015/08/16/automating-project-specific-eclipse-setups-with-oomph/ which seems to
> me a little bit simpler, but I have the problem that the installer doesn't work good for me, because I live behind a
> proxy and even after configuring the proxy I get exceptions (NullPointerException)....
It should work behind proxies. If it doesn't, it would be good to find out why not and how it can be fixed.
Unfortunately Ed and I can hardly test this because we don't work behind such proxies. The other day I found
https://wiki.eclipse.org/Disabling_Apache_Httpclient and I wonder if that helps?

> I found that there are three locations (workspace, installation and user) where these configurations are located. So I
> tried to add a snippet of xml myself into one of these locations:
>
> <setupTask
> xsi:type="setup:EclipseIniTask"
> option="-Xmx"
> value="1024m"
> vm="true">
> <description>Set the heap space needed to work with the projects of modeling</description>
> </setupTask>
> <setupTask
> xsi:type="setup.p2:P2Task">
> <requirement
> name="org.eclipse.xtext.sdk.feature.group"
> versionRange="[2.9.0,2.9.99]"/>
> <repository url="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.9.0/"/>
> <description>Install the tools needed in the IDE to work with the source code for modeling</description>
> </setupTask>
>
>
>
> whereas the first task was configured (memory) but the second one was removed from these locations after starting
> workspace and Performing setup tasks...
What do you mean by "removed"? Removed from where exactly?

> Can you tell me if I mustn't edit these files by myself
That's okay.

> or do I have an invalid xml snippet?
The ones you showed look okay to me.

Cheers
/Eike

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


Re: Apply setup to workspace [message #1725017 is a reply to message #1724873] Mon, 29 February 2016 07:45 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
[quote title=Eike Stepper wrote on Fri, 26 February 2016 17:55]Am 26.02.2016 um 17:12 schrieb Markus Oley:

>> I read it and have to admit that it seems to me really complicated to do, what I want to do. I want to get certain
>> kinds of configuration (especially p2 actions) to our developer and don't think I can get them something done with
>> mapping and so on...
>Sorry, I don't understand this.
OK, rereading my last post I guess it's written a little bit unclear.... Let's replay the docu in my own words: If I want to provide configurations to my projects I have to provide some kind of mapping, which I have to configure via system property in eclipse.ini. Everyone, who wants to use my project configurations has to also provide the mapping in his eclipse.ini, which I think is complicated. For me it would be nice, If I had the possibility to store the project wide configurations on a remote location (like in the git project or on an ftp server....) and to drag and drop it into an existing workspace or the configurations be automatically loaded if I open a project, that has configurations in a dedicated location (e.g. .project). I must admit that I did not understand what the mapping is for....

>It should work behind proxies. If it doesn't, it would be good to find out >why not and how it can be fixed.
>Unfortunately Ed and I can hardly test this because we don't work behind >such proxies. The other day I found
>https://wiki.eclipse.org/Disabling_Apache_Httpclient and I >wonder if that helps?
OK, thank you for your link, I will give it a try. I have tried to reproduce the NullPointer last Friday, but unfortunately the exception did not appear again. But I will contribute a bug report next time I see it....

>> I found that there are three locations (workspace, installation and user) where these configurations are located. So I
>> tried to add a snippet of xml myself into one of these locations:.....
>> whereas the first task was configured (memory) but the second one was removed from these locations after starting
>> workspace and Performing setup tasks...
>What do you mean by "removed"? Removed from where exactly?
After clicking "Perform Setup Tasks..." this configuration was removed for example from the workspace.setup file...

>> Can you tell me if I mustn't edit these files by myself
>That's okay.
So could you imagine that if providing a feature like shown above (drag and drop a setup into eclipse) could get an official oomph feature? If yes, I could imagine to try to implement it and send as pull-request
Re: Apply setup to workspace [message #1725169 is a reply to message #1725017] Tue, 01 March 2016 10:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Markus,

This is a very long thread. And I'm a little confused about what
exactly is the focal point... The thread started with project
configurations and transformed into product catalogs at some point. I'll
try to address your commentary further inline below.


On 29.02.2016 08:45, Markus Oley wrote:
> [quote title=Eike Stepper wrote on Fri, 26 February 2016 17:55]Am
> 26.02.2016 um 17:12 schrieb Markus Oley:
>
>>> I read it and have to admit that it seems to me really complicated
>>> to do, what I want to do. I want to get certain kinds of
>>> configuration (especially p2 actions) to our developer and don't
>>> think I can get them something done with mapping and so on...
>> Sorry, I don't understand this.
> OK, rereading my last post I guess it's written a little bit
> unclear.... Let's replay the docu in my own words: If I want to
> provide configurations to my projects I have to provide some kind of
> mapping, which I have to configure via system property in eclipse.ini.
I'm not sure I follow this. Generally it's easy to share a project
setup by dragging and dropping it into one of the existing catalogs...
More advanced designers may want to maintain there own catalogs, but few
people do that...
> Everyone, who wants to use my project configurations has to also
> provide the mapping in his eclipse.ini, which I think is complicated.
Sorry, I'm not sure I know what mapping you mean. Generally project
setups should be available via an URL and that must be added to a
catalog once....
> For me it would be nice, If I had the possibility to store the project
> wide configurations on a remote location (like in the git project or
> on an ftp server....) and to drag and drop it into an existing
> workspace or the configurations be automatically loaded if I open a
> project, that has configurations in a dedicated location (e.g.
> .project). I must admit that I did not understand what the mapping is
> for....
Yes, that's generally what should be working now. Commonly one uses a
raw view of a repository. I.e., if Oomph's setup wasn't already in the
catalog, one could drag and drop this link into the Eclipse.org project
catalog.

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


>> It should work behind proxies. If it doesn't, it would be good to
>> find out >why not and how it can be fixed. Unfortunately Ed and I can
>> hardly test this because we don't work behind >such proxies. The
>> other day I found
>> https://wiki.eclipse.org/Disabling_Apache_Httpclient and I >wonder if
>> that helps?
> OK, thank you for your link, I will give it a try. I have tried to
> reproduce the NullPointer last Friday, but unfortunately the exception
> did not appear again. But I will contribute a bug report next time I
> see it....
>
>>> I found that there are three locations (workspace, installation and
>>> user) where these configurations are located. So I tried to add a
>>> snippet of xml myself into one of these locations:.....
>>> whereas the first task was configured (memory) but the second one
>>> was removed from these locations after starting workspace and
>>> Performing setup tasks...
>> What do you mean by "removed"? Removed from where exactly?
> After clicking "Perform Setup Tasks..." this configuration was removed
> for example from the workspace.setup file...
What specifically is changed? Broken proxies are removed, is that the
problem?
>
>>> Can you tell me if I mustn't edit these files by myself
>> That's okay.
> So could you imagine that if providing a feature like shown above
> (drag and drop a setup into eclipse) could get an official oomph
> feature? If yes, I could imagine to try to implement it and send as
> pull-request
But that's already working, so there must be some terminology issue.

One thing that I talked to recently with a customer is some type of
drag-and-drop support whereby one could provide a complete description
of all the selections one would make manually in the installer to
automate those steps...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Apply setup to workspace [message #1725235 is a reply to message #1725169] Tue, 01 March 2016 22:08 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Ed,
thanks for your post, answers below...

>I'm not sure I follow this. Generally it's easy to share a project
>setup by dragging and dropping it into one of the existing catalogs...
>More advanced designers may want to maintain there own catalogs, but >few
>people do that...
We have both plugins from eclipse ecosystem or third party plugins (such as anyedit), which we want to use, and two custom plugins, which handle modeling our persistence and masks with xtext. So these things we are not allowed to share with the outside world. So dragging and dropping it into one of the existing catalogs means sharing it on eclipse.org or github? If so, this is not possible for us.

>> Everyone, who wants to use my project configurations has to also
>> provide the mapping in his eclipse.ini, which I think is complicated.
>Sorry, I'm not sure I know what mapping you mean. Generally project
>setups should be available via an URL and that must be added to a
>catalog once....
I mean the mapping shown in https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs.

>> For me it would be nice, If I had the possibility to store the project
>> wide configurations on a remote location (like in the git project or
>> on an ftp server....) and to drag and drop it into an existing
>> workspace or the configurations be automatically loaded if I open a
>> project, that has configurations in a dedicated location (e.g.
>> .project). I must admit that I did not understand what the mapping is
>> for....
>Yes, that's generally what should be working now. Commonly one uses a
>raw view of a repository. I.e., if Oomph's setup wasn't already in the
>catalog, one could drag and drop this link into the Eclipse.org project
>catalog.
Were can I drop it to? In the installer or in an already installed eclipse? Because this would be interesting not only at the point when I start the installation, but also later on, when I already have the eclipse instance running and some provides me further configurations which I should apply to my project. If this already is working, can you please give a hint were it is documented?

>>> What do you mean by "removed"? Removed from where exactly?
>> After clicking "Perform Setup Tasks..." this configuration was removed
>> for example from the workspace.setup file...
>What specifically is changed? Broken proxies are removed, is that the
>problem?
As I have mentioned, I tried to configure p2 repositores and plugins, which should be installed. Unfortunately I didn't get any error messages or exceptions, so I cannot say if it was due to an proxy that was not configured well, but I will retry.

>> So could you imagine that if providing a feature like shown above
>> (drag and drop a setup into eclipse) could get an official oomph
>> feature? If yes, I could imagine to try to implement it and send as
>> pull-request
>But that's already working, so there must be some terminology issue.
Yes, probably it is.


So I will retry merging my configuration into the workspace.setup and will previously take a look at the proxy. And it would be nice if you could answer at least the thing if it is possible dragging and dropping configuration to eclipse ( not to the installer).

Thanks for your effort.
Cheers
Markus

Re: Apply setup to workspace [message #1725280 is a reply to message #1725235] Wed, 02 March 2016 09:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Markus,

Comments below.

On 01.03.2016 23:08, Markus Oley wrote:
> Hi Ed, thanks for your post, answers below...
>
>> I'm not sure I follow this. Generally it's easy to share a project
>> setup by dragging and dropping it into one of the existing
>> catalogs... More advanced designers may want to maintain there own
>> catalogs, but >few people do that...
> We have both plugins from eclipse ecosystem or third party plugins
> (such as anyedit), which we want to use, and two custom plugins, which
> handle modeling our persistence and masks with xtext. So these things
> we are not allowed to share with the outside world. So dragging and
> dropping it into one of the existing catalogs means sharing it on
> eclipse.org or github?
No, such extensions to the catalogs are maintained locally. They things
are only "virtually" in the index.
> If so, this is not possible for us.
>>> Everyone, who wants to use my project configurations has to also
>>> provide the mapping in his eclipse.ini, which I think is complicated.
>> Sorry, I'm not sure I know what mapping you mean. Generally project
>> setups should be available via an URL and that must be added to a
>> catalog once....
> I mean the mapping shown in
> https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs.
>
Well, if you host your own index, you should expect users to use your
stuff exclusively, and in that case you can ensure that all things you
install will include the redirections needed so that those installations
also refer to your index.
>>> For me it would be nice, If I had the possibility to store the
>>> project wide configurations on a remote location (like in the git
>>> project or on an ftp server....) and to drag and drop it into an
>>> existing workspace or the configurations be automatically loaded if
>>> I open a project, that has configurations in a dedicated location
>>> (e.g. .project). I must admit that I did not understand what the
>>> mapping is for....
>> Yes, that's generally what should be working now. Commonly one uses
>> a raw view of a repository. I.e., if Oomph's setup wasn't already in
>> the catalog, one could drag and drop this link into the Eclipse.org
>> project catalog.
> Were can I drop it to? In the installer or in an already installed
> eclipse?
Into the installer dialog or the project importer. I.e., in those
places where you see the green + and red - which do the same thing only
without drag and drop. Drag and drop often work poorly on Linux and Mac
because there is no proper feedback mechanism at the OS level during the
drag operation; only at drop time can you validate that what's being
dropped is sensible or not...
> Because this would be interesting not only at the point when I start
> the installation, but also later on, when I already have the eclipse
> instance running and some provides me further configurations which I
> should apply to my project. If this already is working, can you please
> give a hint were it is documented?
The + button on the project page supports this. Here you can provide a
link to a project setup.
>
>>>> What do you mean by "removed"? Removed from where exactly?
>>> After clicking "Perform Setup Tasks..." this configuration was
>>> removed for example from the workspace.setup file...
>> What specifically is changed? Broken proxies are removed, is that
>> the problem?
> As I have mentioned, I tried to configure p2 repositores and plugins,
> which should be installed. Unfortunately I didn't get any error
> messages or exceptions, so I cannot say if it was due to an proxy that
> was not configured well, but I will retry.
Certainly you'll need to run under debug control to get a sense of what
is going wrong...
>>> So could you imagine that if providing a feature like shown above
>>> (drag and drop a setup into eclipse) could get an official oomph
>>> feature? If yes, I could imagine to try to implement it and send as
>>> pull-request
>> But that's already working, so there must be some terminology issue.
> Yes, probably it is.
>
> So I will retry merging my configuration into the workspace.setup and
> will previously take a look at the proxy. And it would be nice if you
> could answer at least the thing if it is possible dragging and
> dropping configuration to eclipse ( not to the installer).
Yes, project setups can be added to a project catalog in the project
import wizard.
> Thanks for your effort. Cheers
> Markus
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:SetupTask with filter
Next Topic:setup tasks not started
Goto Forum:
  


Current Time: Thu Mar 28 12:38:00 GMT 2024

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

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

Back to the top