|
Re: Git clone task: What's InducedChoices? [message #1768509 is a reply to message #1768497] |
Wed, 19 July 2017 15:00 |
Ed Merks Messages: 33258 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...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02864 seconds