Is there a way to programatically retrieve files from TFS using Java?
Basically I would like a TFS SD开发者_开发百科K that I can uses to retrieve files from source control.
Does something like this exist for Java? My searching only returned results from 2007 about rumors that Teamprise was working on a SDK.
You can now download a TFS SDK for Java provided by Microsoft here.
I don't know about an SDK, but if you connect to the TFS URL, you will see that it's actually a standard SOAP webservice with functions pretty much matching the .NET SDK functions 1:1. The rest should be straightforward.
Teamprise plugin is now called "Team Explorer Everywhere" and has a java based command line client (TEE-CLC), also have a look at SvnBridge which would let you use subclipse/other svn clients to connect to TFS.
Another way, suggested by Robaticus in comments is to use the command line utilities that come with TFS. Simple and reliable, although less integration.
Added: The CLI utilities come with TFS itself. A quick google query reveals the official documentation.
A third possibility that came to my mind is to use a Java-to-.NET bridge. There are a few to choose from. This way you can use the original MS libraries.
精彩评论