microsoft / team-explorer-everywhere

Team Explorer Everywhere Plugin for Eclipse
Other
300 stars 96 forks source link

Download / Clone Project #328

Closed ertanyildiz closed 2 years ago

ertanyildiz commented 3 years ago

Hi. How can I download/clone project to my device using SDK? I did not find anything about my issue. Is there any code sample that downloads project from TFS server? Thanks.

ForNeVeR commented 3 years ago

I afraid there's no clear guidance on how to do it, but here's what I would do.

  1. Take a look here on how to do it with the command-line client (tf.cmd usage from the CLC package is pretty similar)
  2. Check code for the corresponding commands in the command-line client (i.e., say, CommandWorkspace, CommandWorkfold, CommandGet)
  3. Call the same code in your class that uses SDK

You may find some samples on how to use SDK in the Azure DevOps IntelliJ plugin¹ (though there's no implementation of clone/checkout there yet).

¹ Totally not an spam/advertisement, but a Microsoft-managed project.