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

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,

[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: 32111
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 project catalog to order the choices differently in general:
<?xml version="1.0" encoding="UTF-8"?>
    label="Github repository">
  <choice value="[email][/email]:@{remoteURI}.git"
      label="Git (read-write)"/>
  <choice value="[url]https://${|username}{remoteURI}.git[/url]"
      label="HTTPS (read-write)"/>
  <choice value="[url]{remoteURI}.git[/url]"
      label="HTTPS (read-only, anonymous)"/>
  <description>Choose from the available Github URIs</description>

Ed Merks
Professional Support:

[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: Tue Dec 07 18:22:40 GMT 2021

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

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

Back to the top