Hi

the msbuild command is : Message

below is a msbuild script that will echo out the CCNetLabel :

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

<Target Name="ShowVersion">
    <Message Text="CurrentLabel : $(CCNetLabel) "/>
</Target>

</Project>


you can try this from the command prompt with :
    msbuild b.build /p:CCNetLabel=1.0.2.5
where b.build is the above script


so now you must adjust an xsl file that will fetch this value

below are a few pointers for xsl
 http://www.w3schools.com/xsl/default.asp
 http://www.w3schools.com/XPath/default.asp


with kind regards
Ruben Willems


On Mon, Feb 9, 2009 at 6:58 AM, shamim <[email protected]> wrote:

>
> Dear Ruben,
>           Thanks for a reply. Ruben i am working with MSBuild. Will
> please tell how to work with that to get CCNetLabel in email.
>
> Best Regards,
> shamim.
>
> On Feb 8, 5:28 pm, Ruben Willems <[email protected]> wrote:
> > Hi
> >
> > for the moment this is not supported by default,
> > but there is an issue made for it in JIRAhttp://
> jira.public.thoughtworks.org/browse/CCNET-1352
> >
> > This will not make it in the 1.4.3 release,
> >
> > but here's a way to do it now.
> > in you build script, echo the value of CCNetLabel, or the svn number
> > for example : in Nant
> > <echo message="MyNumberToShow  ${CCNetLabel}" />
> >
> > now you can edit an xsl file, (or create a new one) to find this number
> in
> > the build log.
> >
> > with kind regards
> > Ruben Willems
> >
> > On Sat, Feb 7, 2009 at 1:11 PM, shamim <[email protected]> wrote:
> >
> > > Dear all,
> > >             Please help me in displaying the value of svn latest
> > > revision number  or CCNetLabel value inside build report sent through
> > > email (that is configured under <email> tasks). How to access the
> > > CCNetLabel value inside header.xsl file so that it can be displayed
> > > inside email. please do the needful. Thanks in advance.
> >
> > > Regards,
> > > shamim.
> >
> >
>

Reply via email to