|
|
|
Re: Help cloning git repo [message #1650936 is a reply to message #1649995] |
Thu, 05 March 2015 03:30 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Bryan,
The one for Oomph looks like this:
<setupTask
xsi:type="git:GitCloneTask"
id="git.clone.oomph"
remoteURI="oomph/org.eclipse.oomph"
checkoutBranch="master"
userID="">
<annotation
source="http://www.eclipse.org/oomph/setup/InducedChoices">
<detail
key="inherit">
<value>eclipse.git.gerrit.remoteURIs</value>
</detail>
<detail
key="label">
<value>Oomph Git or Gerrit Repository</value>
</detail>
<detail
key="target">
<value>remoteURI</value>
</detail>
</annotation>
<description>Oomph</description>
</setupTask>
Be sure to set proper id on the task, not the empty string; no doubt you
need this anyway so that other tasks can refer to the location, e.g.,
${git.clone.oomph.location} for the case of Oomph's clone location.
Also, the empty string for the pushURI is probably a bad idea as well.
And again, be sure to inspect this in the confirmation page, in
particular look at how all these values are expanded, especially the
location value (which I don't think will be expanded unless the task has
an ID) to which the clone location rule can be applied.
On 04/03/2015 5:09 PM, Bryan Hunt wrote:
> Hi Ed,
>
> Here is the clone task
>
>
> <setupTask
> xsi:type="git:GitCloneTask"
> id=""
> remoteURI="demo"
> pushURI=""
> checkoutBranch="master">
> <annotation
> source="http://www.eclipse.org/oomph/setup/InducedChoices">
> <detail
> key="inherit">
> <value>nvidia.git.gerrit.remoteURIs</value>
> </detail>
> <detail
> key="label">
> <value>Demo Gerrit Repository</value>
> </detail>
> <detail
> key="target">
> <value>remoteURI</value>
> </detail>
> </annotation>
> </setupTask>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04703 seconds