Lock git repo url via configuration [message #1824085] |
Tue, 07 April 2020 12:13  |
Eclipse User |
|
|
|
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 12:13] by Moderator
|
|
|
Re: Lock git repo url via configuration [message #1824104 is a reply to message #1824085] |
Wed, 08 April 2020 00:28  |
Eclipse User |
|
|
|
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>
[Updated on: Wed, 08 April 2020 00:28] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds