Welcome to MSDN Blogs Sign in | Join | Help

Biztalk Discoveries, Experiences

My Biztalk Discoveries, Experiences on day to day work, during Dev , Qa ,Deployment , Production environments etc

Syndication

News

My Biztalk Discoveries, Experiences on day to day work, during Dev , Qa ,Deployment , Production environments etc
Msbuild Archive Files Unique Zip file Name

this Explains how to use Msbuild to zip some log files. the zipfilename is generated from date time information, hence unique. 

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets ="ZipLogs">

<Import Project="c:\sdc\Microsoft.Sdc.Common.Tasks" />

<PropertyGroup >

<MsgFailed>Failed Email for </MsgFailed>

<BuildLogZip>buildlogs.zip </BuildLogZip>

</PropertyGroup>

<Target Name="ZipLogs" >

<Time.GetTime Format="yyyyMMMdd-hh-mm" >

<Output TaskParameter="Time" PropertyName="ResultsItem" />

</Time.GetTime>

<Message Text="$(ResultsItem)" ></Message>

<Zip.AddFile

pathToZipFile="$(ResultsItem)$(BuildLogZip)"

pathToFile="Summary1.log" />

<Zip.AddFile

pathToZipFile="$(ResultsItem)$(BuildLogZip)"

pathToFile="Build.Log" />


</Target>

</Project>

Published Thursday, July 31, 2008 2:59 PM by Sundara Prabu .T

Filed under: , , ,

Comments

No Comments

Anonymous comments are disabled
Page view tracker