Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Let oomph import from multiple git - repositories
Let oomph import from multiple git - repositories [message #1706967] Tue, 01 September 2015 08:27 Go to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Hello,
since i work on a big project, i want to be able to define multiple branches, from which
i want to import, during the eclipse installation time. Since i want to do it during the
installation time, i need induced choices. But here, my problem is, that if i define an
import task with induced choices in it, then the number of clone repos in the
installation menu is fixed. So I only have a fixed number of induced choices , whereas i
want to add multiple clone repos in the installation time. Is there a solution for this ?

Thank you for your help,
Maksim

[Updated on: Tue, 01 September 2015 10:04]

Report message to a moderator

Re: Let oomph import from multiple git - branches [message #1706979 is a reply to message #1706967] Tue, 01 September 2015 09:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Maksim,

Comments below.

On 01/09/2015 10:27 AM, Maksim Melnik wrote:
> Hello,
> since i work on a big project, i want to be able to define multiple
> branches, from which
> i want to import, during the eclipse installation time.
I'm not sure what importing multiple branches means...
> Since i want to do it during the
> installation time, i need induced choices.
Given I don't understand what the first sentence means, I don't follow
how this leads to induced choices. Choices of what?
> But here, my problem is, that if i define an
> import task
A project's import task?
> with induced choices in it, then the number of clone repos in the
> installation menu is fixed.
Number of clone repos in installation menu. I'm not sure which mean
shows clone repos...
> So I only have a fixed number of induced choices , whereas i want to
> add multiple clone repos in the installation time. Is there a solution
> for this ?
Sorry, I completely don't follow what you're asking. If this is about
choices for the checking branch of a clone, which is
${scope.project.stream.name} in the template, you can always change that
to refer to a variable with choices that you author yourself...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Let oomph import from multiple git - branches [message #1706980 is a reply to message #1706979] Tue, 01 September 2015 10:03 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Hey Ed,
sorry for my unclear question and thank you for your reply. I will try to put it another way.
I have multiple git repositories.
However i only want to clone and import into workspace only a subset of them. The subset may differ depending on what i want to work on.
In order to clone a git repository , as far as i understand, a git-clone task is required with either induced choices or a hard-coded RemoteURI.
Now my problem is, since i want to clone different ammount of repositories, i want to have a flexible number of induced choices, so that in the installation menu i can add multiple git clone paths.

Since i don't know how to make the number of induced choices flexible i've tried to find a workaround.

I tried defining multiple .setup files, each of which clones a single project into workspace, but then i get the problem, that every project is imported into all work-sets , instead of just into the work-set it belongs to.

I hope my problem is clear now.
Maksim

[Updated on: Tue, 01 September 2015 10:04]

Report message to a moderator

Re: Let oomph import from multiple git - branches [message #1706987 is a reply to message #1706980] Tue, 01 September 2015 10:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Maksim,

Comments below.

On 01/09/2015 12:03 PM, Maksim Melnik wrote:
> Hey Ed,
> sorry for my unclear question and thank you for your reply. I will try
> to put it another way.
> I have a multiple git repositories. However i only want to clone and
> import into workspace only a subset of them. The subset may differ
> depending on what i want to work on.
> In order to clone a git repository , as far as i understand, a
> git-clone task is required with either induced choices or a hard-coded
> RemoteURI.
> Now my problem is, since i want to clone different ammount of
> repositories, i want to have a flexible number of induced choices, so
> that in the installation menu i can add multiple git clone paths.
The choice of repository URI is about which variant of to choose for a
given repository, i.e.., git, ssh, https and so on. It's not about
choice to clone or not...
> Since i don't know how to make the number of induced choices flexible
> i've tried to find a workaround.
I think this is just the wrong path.
>
> I tried defining multiple .setup files, each of which clones a single
> project into workspace, but then i get the problem, that every project
> is imported into all work-sets , instead of just into the work-set it
> belongs to.
I imagine each different clone should maintain a setup for the projects
in that clone. You choose to work on those projects by virtue of
choosing that project setup.

I'm trying to figure out what you mean by "every project is imported
into all work-sets". Are there working set tasks involved in this?
It's clear a project can't be imported into the workspace unless there
is a git clone for it, so I'm unsure what problem you're having.
>
> I hope my problem is clear now.
> Maksim


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Let oomph import from multiple git - branches [message #1706993 is a reply to message #1706987] Tue, 01 September 2015 11:49 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Ed,

Comments below.

On 01/09/2015 12:03 PM, Maksim Melnik wrote:
> Hey Ed,
> sorry for my unclear question and thank you for your reply. I will try
> to put it another way.
> I have a multiple git repositories. However i only want to clone and
> import into workspace only a subset of them. The subset may differ
> depending on what i want to work on.
> In order to clone a git repository , as far as i understand, a
> git-clone task is required with either induced choices or a hard-coded
> RemoteURI.
> Now my problem is, since i want to clone different ammount of
> repositories, i want to have a flexible number of induced choices, so
> that in the installation menu i can add multiple git clone paths.

>The choice of repository URI is about which variant of to choose for a
>given repository, i.e.., git, ssh, https and so on. It's not about
>choice to clone or not...

Okay, but can i define multiple locations in this section?

> Since i don't know how to make the number of induced choices flexible
> i've tried to find a workaround.
I think this is just the wrong path.
>
> I tried defining multiple .setup files, each of which clones a single
> project into workspace, but then i get the problem, that every project
> is imported into all work-sets , instead of just into the work-set it
> belongs to.

>I imagine each different clone should maintain a setup for the projects
>in that clone. You choose to work on those projects by virtue of
>choosing that project setup.

>I'm trying to figure out what you mean by "every project is imported
>into all work-sets". Are there working set tasks involved in this?
>It's clear a project can't be imported into the workspace unless there
>is a git clone for it, so I'm unsure what problem you're having.

Yes there are work-set tasks. When i chose multiple .setup files in the installation menu, i get multiple working sets in my eclipse. That's fine. The problem is, that each working-set, imports all projects. So i get many repetitions in each set.
What i want is, that each work-set contains only projects , which are cloned by it's setup file.

>
> I hope my problem is clear now.
> Maksim
Re: Let oomph import from multiple git - branches [message #1706996 is a reply to message #1706993] Tue, 01 September 2015 12:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Maksim,

Comments below.

On 01/09/2015 1:49 PM, Maksim Melnik wrote:
> Ed,
>
> Comments below.
>
> On 01/09/2015 12:03 PM, Maksim Melnik wrote:
>> Hey Ed,
>> sorry for my unclear question and thank you for your reply. I will
>> try to put it another way.
>> I have a multiple git repositories. However i only want to clone and
>> import into workspace only a subset of them. The subset may differ
>> depending on what i want to work on.
>> In order to clone a git repository , as far as i understand, a
>> git-clone task is required with either induced choices or a
>> hard-coded RemoteURI.
>> Now my problem is, since i want to clone different ammount of
>> repositories, i want to have a flexible number of induced choices, so
>> that in the installation menu i can add multiple git clone paths.
>
>> The choice of repository URI is about which variant of to choose for a
>> given repository, i.e.., git, ssh, https and so on. It's not about
>> choice to clone or not...
>
> Okay, but can i define multiple locations in this section?
A clone only has one remote URI.
>> Since i don't know how to make the number of induced choices flexible
>> i've tried to find a workaround.
> I think this is just the wrong path.
>>
>> I tried defining multiple .setup files, each of which clones a single
>> project into workspace, but then i get the problem, that every
>> project is imported into all work-sets , instead of just into the
>> work-set it belongs to.
>
>> I imagine each different clone should maintain a setup for the projects
>> in that clone. You choose to work on those projects by virtue of
>> choosing that project setup.
>
>> I'm trying to figure out what you mean by "every project is imported
>> into all work-sets". Are there working set tasks involved in this?
>> It's clear a project can't be imported into the workspace unless there
>> is a git clone for it, so I'm unsure what problem you're having.
>
> Yes there are work-set tasks. When i chose multiple .setup files in
> the installation menu, i get multiple working sets in my eclipse.
> That's fine. The problem is, that each working-set, imports all
> projects. So i get many repetitions in each set.
So that's just a matter of how you define their contents. A
repository predicate lets you specify "all projects in the same
repository as some specific project". There are many predicates
available; name predicates are commonly used as well.
> What i want is, that each work-set contains only projects , which are
> cloned by it's setup file.
>
>>
>> I hope my problem is clear now.
>> Maksim


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Let oomph import from multiple git - branches [message #1706997 is a reply to message #1706996] Tue, 01 September 2015 12:12 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Uhm , what would be the right way to clone from multiple URIs , as i said i have multiple git-projects and i just want to clone a subset of them?
Re: Let oomph import from multiple git - branches [message #1707038 is a reply to message #1706997] Tue, 01 September 2015 16:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
One need one git clone task per repository you want to clone.

On 01/09/2015 2:12 PM, Maksim Melnik wrote:
> Uhm , what would be the right way to clone from multiple URIs , as i
> said i have multiple git-projects and i just want to clone a subset of
> them?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Error installing a plugin
Next Topic:ERROR: No repository found at http://download.eclipse.org/technology/epp/packages/mars/RC3.
Goto Forum:
  


Current Time: Sun Dec 08 00:10:57 GMT 2024

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

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

Back to the top