Skip to main content



      Home
Home » Eclipse Projects » Oomph » Lock git repo url via configuration
Lock git repo url via configuration [message #1824085] Tue, 07 April 2020 12:13 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

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


Current Time: Wed Jul 16 16:30:56 EDT 2025

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

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

Back to the top