Skip to main content



      Home
Home » Eclipse Projects » Oomph » Git clone task: What's InducedChoices?
Git clone task: What's InducedChoices? [message #1768497] Wed, 19 July 2017 09:36 Go to next message
Eclipse UserFriend
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 11:00 Go to previous message
Eclipse UserFriend
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: Wed Jul 09 08:51:27 EDT 2025

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

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

Back to the top