Skip to main content



      Home
Home » Eclipse Projects » Oomph » Can I configure the default checkout for github projects to HTTPS (readonly, anonymous)(configuring github checkout method)
Can I configure the default checkout for github projects to HTTPS (readonly, anonymous) [message #1872156] Thu, 24 October 2024 05:52 Go to next message
Eclipse UserFriend
Is there a way to configure the default checkout method for github based projects to HTTPS (readonly, anonymous)?

[Updated on: Thu, 24 October 2024 05:53] by Moderator

Re: Can I configure the default checkout for github projects to HTTPS (readonly, anonymous) [message #1872180 is a reply to message #1872156] Thu, 24 October 2024 10:34 Go to previous messageGo to next message
Eclipse UserFriend
I'm not exactly sure what you are asking. You can specify the full URI in the "Remote URI" property of a Git clone task if you don't want there to be a choice...
Re: Can I configure the default checkout for github projects to HTTPS (readonly, anonymous) [message #1872189 is a reply to message #1872180] Thu, 24 October 2024 15:35 Go to previous messageGo to next message
Eclipse UserFriend
The default behaviour for me is that the git repository location is offering the selections for
* Git (read-write)
* HTTPS (read-write)
* HTTPS (read-write, anonymous)
The git option is pre-selected.
I was curious if I could pre-select HTTPS (read-write, anonymous) instead of git.
Still keeping the select option.

Re: Can I configure the default checkout for github projects to HTTPS (readonly, anonymous) [message #1872204 is a reply to message #1872189] Fri, 25 October 2024 03:03 Go to previous messageGo to next message
Eclipse UserFriend
I see. You're using github.remoteURIs and just want to order of the choices to be different; the first choice is the default value. The set of choices is defined three times in three different orders in the project catalog and you can use the value of the github.git.authentication.style variable to choose which one. But the default is anonymous.

But then I think, maybe you are using the com.github.projects.setup where I did not define such alternatives. In that case, you can definite this but with different choice order:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="github.remoteURIs"
    label="Github repository">
  <choice value="git@github.com:@{remoteURI}.git"
      label="Git (read-write)"/>
  <choice value="https://${github.user.id|username}@github.com/@{remoteURI}.git"
      label="HTTPS (read-write)">
    <annotation
        source="http://www.eclipse.org/oomph/setup/MatchChoice"/>
  </choice>
  <choice value="https://github.com/@{remoteURI}.git"
      label="HTTPS (read-only, anonymous)"/>
  <description>Choose from the available Github URIs</description>
</setup:VariableTask>
Re: Can I configure the default checkout for github projects to HTTPS (readonly, anonymous) [message #1872632 is a reply to message #1872204] Tue, 12 November 2024 00:46 Go to previous message
Eclipse UserFriend
After using my own catalog file, I was able to configure the sequence. Thx a lot Ed.
Previous Topic:Install eclipse with a bundled jre (jre copied inside eclipse installation)
Next Topic:Please use Oomph Discussions
Goto Forum:
  


Current Time: Tue May 20 04:12:37 EDT 2025

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

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

Back to the top