Accessing Team Foundation version control from Ant and Java-based CruiseControl

Buck Hodges

Martin Woodward of Team[rise announced the Ant and Java-based CruiseControl support for Team Foundation version control in his post on the release of Teamprise 2.1.  There’s lots of good stuff in there, but this stuck out at me in particular.  If you are using TFS and Java, this is a great addition.  They’ve even made the Ant and CruiseControl support available for anyone, not just Teamprise customers!

Teamprise 2.1 Released

Yesterday we made version 2.1 of Teamprise publicly available.  If you’ve previously installed Teamprise, then I recommend that you upgrade to this version as it includes a number of bug-fixes that while not critical are definitely useful.  People who purchased a Teamprise Client Suite for Version 1 or 2.0 get the upgrade free of charge.  For the full release notes look here

<good stuff omitted — check out the full post>

Ant Tasks

We now have a suite of Ant integrations to TFS to perform various useful tasks.  For more information see the reference.  We’ve been using these for a while internally but one of the biggest areas that customers have been asking for help in is in integrated build automation.  The Ant tasks allow you to talk to Team Foundation Server Version Control from Ant.

One of the important things to note about the Ant tasks is that they work by calling out to the “tf” command line client.  We have written the tasks to be compatible with both the Microsoft tf.exe client and our own Command Line Client that comes as part of the Teamprise Client Suite.  Therefore, even if you are not a Teamprise customer you can still download and use the ant tasks on your windows system with Microsoft’s client installed.  If you want to run that same Ant script on your Unix / Mac boxes then you can using our client.

Cruise Control Integration

While TFS was in Beta 2, I wrote a CruiseControl.NET integration to TFS to ease adoption of the new tool as a version control and work item repository for existing .NET 1.1 projects.  Now I have written a similar integration to the original Java based CruiseControl (version 2.6) build server – again to ease adoption for existing Java projects.  In common with the Ant Tasks, this integration talks to TFS via the command line so you can use it with either the Microsoft or Teamprise command line clients.  For more information see the manual.

tags: , , , , ,


Leave a comment

Feedback usabilla icon