|
Re: Adding to git clone location choice [message #1770158 is a reply to message #1770139] |
Tue, 08 August 2017 17:07 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
There are variables such as these defined in the org.eclipse.projects.setup:<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
<setup:VariableTask
name="eclipse.gerrit.remoteURIs"
label="Eclipse Gerrit Repository">
<choice
value="https://git.eclipse.org/r/@{remoteURI}"
label="HTTPS (read-only, anonymous, Gerrit)"/>
<choice
value="ssh://${git.user.id|username}@git.eclipse.org:29418/@{remoteURI}"
label="SSH (read-write, Gerrit)">
<annotation
source="http://www.eclipse.org/oomph/setup/MatchChoice"/>
</choice>
<choice
value="https://${git.user.id|username}@git.eclipse.org/r/@{remoteURI}"
label="HTTPS (read-write, Gerrit)">
<annotation
source="http://www.eclipse.org/oomph/setup/MatchChoice"/>
</choice>
<description>Choose from the available remote Gerrit URIs</description>
</setup:VariableTask>
<setup:VariableTask
name="eclipse.git.remoteURIs"
label="Eclipse Git Repository">
<choice
value="http://git.eclipse.org/gitroot/@{remoteURI}.git"
label="HTTP (read-only, anonymous, direct)"/>
<choice
value="ssh://${git.user.id|username}@git.eclipse.org/gitroot/@{remoteURI}.git"
label="SSH (read-write, direct)">
<annotation
source="http://www.eclipse.org/oomph/setup/MatchChoice"/>
</choice>
<choice
value="git://git.eclipse.org/gitroot/@{remoteURI}"
label="Git (read-only, anonymous, direct)"/>
<description>Choose from the available Git URIs</description>
</setup:VariableTask>
<setup:VariableTask
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)"/>
<choice
value="https://github.com/@{remoteURI}.git"
label="HTTPS (read-only, anonymous)"/>
<description>Choose from the available Github URIs</description>
</setup:VariableTask>
</xmi:XMI>
So yes, you can define your own such variables that extract (via @{feature-name}) information specified in the model instance. I'm not sure the intent of @{id.remoteURI} because that's not a feature name.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03034 seconds