Description

To build Java applications, you can call Ant from inside your Team Build TFSBuild.proj files. While this is possible using a simple Exec task, the following information discusses the usage of a special Ant task for MSBuild that will execute Ant and ensure that information about that build is sent to your log files and the appropriate steps added to your build report.

Usage

For more details, see http://www.woodwardweb.com/teamprise/000406.html. Basically, it requires the use of a custom MSBuild task to call Ant that feeds back the appropriate data into TFS.

Example Usage

<UsingTask TaskName="Teamprise.Build.Ant" 
           AssemblyFile="Teamprise.Build.dll"/>

...

<Target Name="CoreCallAnt">

  <Ant TeamFoundationServerUrl="$(TeamFoundationServerUrl)" 
    BuildFile="$(SolutionRoot)\java\HelloWorld\build.xml" 
    BuildUri="$(BuildUri)" 
    AntHome="$(ANT_HOME)" 
    JavaHome="$(JAVA_HOME)" 
    Flavor="@(ConfigurationToBuild -> '%(FlavorToBuild)')" 
    Platform="@(ConfigurationToBuild -> '%(PlatformToBuild)')"   
    Properties="BinariesRoot=$(BinariesRoot);BuildNumber=$(BuildNumber);SourceGetVersion=$(SourceGetVersion)" />

</Target>

Source

http://www.woodwardweb.com/teamprise/000406.html

Last edited Nov 2, 2010 at 6:09 PM by wbarthol, version 2

Comments

No comments yet.