Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Lock git repo url via configuration
Lock git repo url via configuration [message #1824085] Tue, 07 April 2020 16:13 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

for a github project, users have the choice to clone/acces the repo via "anonymous", "ssh", "https". I would like to create a configuration, to pre-select "https" and hide the choice combobox. Is that possible?

Thank you,
Felix

[Updated on: Tue, 07 April 2020 16:13]

Report message to a moderator

Re: Lock git repo url via configuration [message #1824104 is a reply to message #1824085] Wed, 08 April 2020 04:28 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
We probably should have made the anonymous choice the first one.

But yes, given your Git Clone task has ID a.b.c, there will be a variable a.b.c.removeURI induced that you can define in your Configuration to be some specific value. The Outline view is useful for seeing which variables will be prompted (Unresolved Variables group) and here you'll see exactly which variables you could define in your Configuration such that it's not prompted. You could also define that variable with choices where the first choice will be the default. Or you could redefine the following variable from the Github.com project catalog to order the choices differently in general:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="[url]http://www.omg.org/XMI[/url]"
    xmlns:setup="[url]http://www.eclipse.org/oomph/setup/1.0[/url]"
    name="github.remoteURIs"
    label="Github repository">
  <choice value="[email]git@github.com[/email]:@{remoteURI}.git"
      label="Git (read-write)"/>
  <choice value="[url]https://${github.user.id|username}@github.com/@{remoteURI}.git[/url]"
      label="HTTPS (read-write)"/>
  <choice value="[url]https://github.com/@{remoteURI}.git[/url]"
      label="HTTPS (read-only, anonymous)"/>
  <description>Choose from the available Github URIs</description>
</setup:VariableTask>


Ed Merks
Professional Support: https://www.macromodeling.com/

[Updated on: Wed, 08 April 2020 04:28]

Report message to a moderator

Previous Topic:Change default workspace name?
Next Topic:Follow references in P2 task
Goto Forum:
  


Current Time: Fri Dec 06 02:33:27 GMT 2024

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

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

Back to the top