Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Git clone task: What's InducedChoices?
Git clone task: What's InducedChoices? [message #1768497] Wed, 19 July 2017 13:36 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 135
Registered: July 2009
Senior Member
I used the wizard to generate a github project setup. The resulting setup contains a git clone task that has an annotation named InducedChoices and keys-value pairs

inherit -> github.remoteURIs
label -> ${scope.project.label} Github repository
target -> remoteURI

What is the purpose of this annotation and where do the values go? Is it necessary to add the annotation to a manually created git clone task?
Re: Git clone task: What's InducedChoices? [message #1768509 is a reply to message #1768497] Wed, 19 July 2017 15:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29551
Registered: July 2009
Senior Member
For both Eclipse Git repositories and Github Git repositories there are still different URIs you can use to clone the repository. The Github project catalog includes this:
<?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>
This allows the three different alternative URIs that can be used to clone the repository to be induced from the the "Remote URI" path in the Git clone task and give the user the choice of which to use. You can of course just hard code this, or hard code the choices...
Previous Topic:Help me, plz~ eclipse installtion error
Next Topic:synchronizing workspaces with oomph via network drive
Goto Forum:
  


Current Time: Tue Sep 25 04:44:35 GMT 2018

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

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

Back to the top