Skip to main content



      Home
Home » Eclipse Projects » Oomph » Duplicate dynamic working sets
Duplicate dynamic working sets [message #1736928] Mon, 04 July 2016 08:05 Go to next message
Eclipse UserFriend
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 08:15 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Duplicate dynamic working sets [message #1736936 is a reply to message #1736930] Mon, 04 July 2016 08:37 Go to previous messageGo to next message
Eclipse UserFriend
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 10:29 Go to previous messageGo to next message
Eclipse UserFriend
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 :)
Re: Duplicate dynamic working sets [message #1737008 is a reply to message #1736950] Tue, 05 July 2016 02:23 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 08:32:17 EDT 2025

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

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

Back to the top