Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Redirecting nested projects in the catalog?
Redirecting nested projects in the catalog? [message #1725799] Mon, 07 March 2016 17:36 Go to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Colleagues in my company start to like oomph so much, they don't only want to use or maintain existing setups, they would like to maintain their own "sub catalogs" so that each team is free to add new setups to their "section" of a company-wide catalog.

The first levels of nesting and redirecting I got to work OK: a company wide catalog has some toplevel <project> elements that simply create a nesting structure, and then leaf <project> nodes use href to refer to a URL where Jenkins deploys the individual setup (could also link into git/svn - same difference).

Just the last step I cannot get to work: to extract intermediate <project> nodes to separated files, that are again containers for individual setups (the team specific sub-catalogs). Can this possibly work?

For illustration, I'm trying s.t. like this:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ProjectCatalog
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="comp.projects"
    label="Catalog of all Comp Projects">
  <project href="http://eclipse.comp.com/oomph/Team1.setup#/"/>
  <project href="http://eclipse.comp.com/oomph/Team2.setup#/"/>
</setup:ProjectCatalog>

And in Team1.setup:
<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="team1.comp.projects"
    label="Catalog of Team1 Projects">
  <project href="http://eclipse.comp.com/oomph/Team1.1.setup#/"/>
  <project href="http://eclipse.comp.com/oomph/Team1.2.setup#/"/>
</setup:Project>


best,
Stephan
Re: Redirecting nested projects in the catalog? [message #1725805 is a reply to message #1725799] Mon, 07 March 2016 18:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33146
Registered: July 2009
Senior Member
Stephan,

That should work. What's not working?

On 07.03.2016 18:36, Stephan Herrmann wrote:
> Colleagues in my company start to like oomph so much, they don't only
> want to use or maintain existing setups, they would like to maintain
> their own "sub catalogs" so that each team is free to add new setups
> to their "section" of a company-wide catalog.
>
> The first levels of nesting and redirecting I got to work OK: a
> company wide catalog has some toplevel <project> elements that simply
> create a nesting structure, and then leaf <project> nodes use href to
> refer to a URL where Jenkins deploys the individual setup (could also
> link into git/svn - same difference).
>
> Just the last step I cannot get to work: to extract intermediate
> <project> nodes to separated files, that are again containers for
> individual setups (the team specific sub-catalogs). Can this possibly
> work?
>
> For illustration, I'm trying s.t. like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:ProjectCatalog
> xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> name="comp.projects"
> label="Catalog of all Comp Projects">
> <project href="http://eclipse.comp.com/oomph/Team1.setup#/"/>
> <project href="http://eclipse.comp.com/oomph/Team2.setup#/"/>
> </setup:ProjectCatalog>
>
> And in Team1.setup:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:Project
> xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> name="team1.comp.projects"
> label="Catalog of Team1 Projects">
> <project href="http://eclipse.comp.com/oomph/Team1.1.setup#/"/>
> <project href="http://eclipse.comp.com/oomph/Team1.2.setup#/"/>
> </setup:Project>
>
>
> best,
> Stephan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Redirecting nested projects in the catalog? [message #1726077 is a reply to message #1725805] Wed, 09 March 2016 12:50 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Ed Merks wrote on Mon, 07 March 2016 19:35
Stephan,

That should work. What's not working?


Hi Ed,

thanks for confirming. Now that you said it, it actually does work (with no changes on my side, so oomph seems to obey to your command Smile ).

Seriously, I suspect that half of my attempts the other day may have been working with stale cached information. I saw progress messages about mirroring the catalog or individual setups. What gesture will cause oomph to reload the catalog/setups? I thought restarting would suffice, but it seem it does not?

This question not only applies to the installer but also to the IDE: what's the easiest way to force "Perform Setup Tasks" to reload the installed setup?

Stephan
Re: Redirecting nested projects in the catalog? [message #1726080 is a reply to message #1726077] Wed, 09 March 2016 13:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33146
Registered: July 2009
Senior Member
Stephan,

Yes, restarting should load the remote resources again. The installer
always tries to load remote resources and uses the cache only if that
fails. If you show the Setup toolbar contributions (there's a
preference for that), there's an action on the toolbar to refresh the
remote cache, and failing that, in the Oomph preferences for Remote
resources there's a button to refresh the cache.


On 09.03.2016 13:50, Stephan Herrmann wrote:
> Ed Merks wrote on Mon, 07 March 2016 19:35
>> Stephan,
>>
>> That should work. What's not working?
>
>
> Hi Ed,
>
> thanks for confirming. Now that you said it, it actually does work
> (with no changes on my side, so oomph seems to obey to your command :) ).
>
> Seriously, I suspect that half of my attempts the other day may have
> been working with stale cached information. I saw progress messages
> about mirroring the catalog or individual setups. What gesture will
> cause oomph to reload the catalog/setups? I thought restarting would
> suffice, but it seem it does not?
>
> This question not only applies to the installer but also to the IDE:
> what's the easiest way to force "Perform Setup Tasks" to reload the
> installed setup?
>
> Stephan
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[SOLVED] Building multi platform executables
Next Topic:CDT cannot complete install
Goto Forum:
  


Current Time: Thu May 09 00:36:43 GMT 2024

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

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

Back to the top