Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Duplicate dynamic working sets
Duplicate dynamic working sets [message #1736928] Mon, 04 July 2016 12:05 Go to next message
Christian Wolff is currently offline Christian WolffFriend
Messages: 18
Registered: April 2016
Junior Member
Hi,

I have multiple setup files which can be used to clone specific git repositories (one setup file per repository) and import the cloned projects in Eclipse. I use dynamic working sets to group the cloned projects based on their file path. Every git clone setup contains the following working set task:
<setupTask
      xsi:type="setup.workingsets:WorkingSetTask">
    <workingSet
        name="{$group}">
      <predicate
          xsi:type="predicates:LocationPredicate"
          pattern="C:/develop/git/{$group}/.*"/>
    </workingSet>
    <description>A dynamic working set</description>
</setupTask>

{$group} gets replaced by an actual group e. g. "workingset1".
This works fine but every time another repository is cloned that uses the same group another dynamic working set is created even though the content is exactly the same as in the already existing dynamic working set.
After cloning three projects of the same group I get three dynamic working sets:
workingset1 Location like C:/develop/git/workingset1/.*
workingset1 Location like C:/develop/git/workingset1/.*
workingset1 Location like C:/develop/git/workingset1/.*

While one would be enough (obviously).
Needless to say the overview becomes a bit messy as time goes on.
Is there a way to prevent this without removing the setupTask?

Thanks!
Christian
Re: Duplicate dynamic working sets [message #1736930 is a reply to message #1736928] Mon, 04 July 2016 12:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Christian,

Are you using the latest version of Oomph with the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=491980 in it? Is
{$group} correct in your example? It's not ${group}? How do
repositories use the same group?


On 04.07.2016 08:05, Christian Wolff wrote:
> Hi,
>
> I have multiple setup files which can be used to clone specific git
> repositories (one setup file per repository) and import the cloned
> projects in Eclipse. I use dynamic working sets to group the cloned
> projects based on their file path. Every git clone setup contains the
> following working set task:
>
> <setupTask
> xsi:type="setup.workingsets:WorkingSetTask">
> <workingSet
> name="{$group}">
> <predicate
> xsi:type="predicates:LocationPredicate"
> pattern="C:/develop/git/{$group}/.*"/>
> </workingSet>
> <description>A dynamic working set</description>
> </setupTask>
>
> {$group} gets replaced by an actual group e. g. "workingset1".
> This works fine but every time another repository is cloned that uses
> the same group another dynamic working set is created even though the
> content is exactly the same as in the already existing dynamic working
> set.
> After cloning three projects of the same group I get three dynamic
> working sets:
> workingset1 Location like C:/develop/git/workingset1/.*
> workingset1 Location like C:/develop/git/workingset1/.*
> workingset1 Location like C:/develop/git/workingset1/.*
>
> While one would be enough (obviously).
> Needless to say the overview becomes a bit messy as time goes on. Is
> there a way to prevent this without removing the setupTask?
>
> Thanks!
> Christian


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Duplicate dynamic working sets [message #1736936 is a reply to message #1736930] Mon, 04 July 2016 12:37 Go to previous messageGo to next message
Christian Wolff is currently offline Christian WolffFriend
Messages: 18
Registered: April 2016
Junior Member
Hi Ed,

I actually only tested this by adding new setups to an existing installation modifying the workspace setup of my Eclipse and performing the setup tasks. Unfortunately I do not know if the installer would behave exactly the same. {$group} is indeed correct since it is replaced by a server side templating engine before oomph ever sees it Smile
Re: Duplicate dynamic working sets [message #1736950 is a reply to message #1736936] Mon, 04 July 2016 14:29 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Christian,

If you want me to investigate further, I'll need a Bugzilla with a test
case to reproduce the problem.


On 04.07.2016 08:37, Christian Wolff wrote:
> Hi Ed,
>
> I actually only tested this by adding new setups to an existing
> installation modifying the workspace setup of my Eclipse and
> performing the setup tasks. Unfortunately I do not know if the
> installer would behave exactly the same. {$group} is indeed correct
> since it is replaced by a server side templating engine before oomph
> ever sees it :)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Duplicate dynamic working sets [message #1737008 is a reply to message #1736950] Tue, 05 July 2016 06:23 Go to previous message
Christian Wolff is currently offline Christian WolffFriend
Messages: 18
Registered: April 2016
Junior Member
I have opened a bugzilla here https://bugs.eclipse.org/bugs/show_bug.cgi?id=497278
Previous Topic:[Solved] Deactivate 'Launch automatically' automatically
Next Topic:Oomps is able to share preferences between different eclipse instances?
Goto Forum:
  


Current Time: Fri Apr 19 09:28:10 GMT 2024

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

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

Back to the top