Thanks Rebecca,

Does your version file only contain the one version or multiple versions
for other projects?  And do you include this file in your build or does
your project files use this file to insert the build version?

Thanks,

Tim.

-----Original Message-----
From: Kedziora, Rebecca [mailto:[EMAIL PROTECTED] 
Sent: December 15, 2005 9:18 AM
To: Tim Mayert
Cc: nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Automatically updating build number on nightly
builds


Hello,

We keep our version number in a file.  I use the common.build for all
projects which they include.  You can review to see how we do our build
numbers.

-Rebecca


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Mayert
Sent: Thursday, December 15, 2005 8:42 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Automatically updating build number on nightly
builds


We are just looking at implementing our major builds in NAnt for nightly
builds and would like to know if there are simple function(s) that will
automatically update our build number for each build.

At the moment we have the build number set in our project
ProjectProperties.xml file, shown below, that is loading in the include
section of our main default.build file.

<?xml version="1.0" encoding="utf-8" ?> 
<project name="ProjectProperties" default="build"
xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd";>
<!-- This file should contain all the properties specific to your
project !-->

        <!-- Set these properties for product version and source
label/tag. !-->
        <property name="MAJORNUM"    value="1" />
        <property name="MINORNUM"    value="2" />
        <property name="BUILDNUM"    value="28" />
        <property name="PATCHNUM"    value="0" />
        <property name="VERSION"
value="${MAJORNUM}.${MINORNUM}.${BUILDNUM}.${PATCHNUM}" />

At the moment this file is manually updated for each build, which is not
an issue until we go to nightly builds.  At that point we would have to
remember to update the BUILDNUM every night before going home so that
the build gets the correct build number.

So I am looking for a way to have the BUILDNUM incremented by 1 for
every build before the file gets loaded by the main build file.  Now my
experience with NAnt is still at a beginners state and therefore I do
not know all the in's and out's of it as of yet.  So if someone could
suggest a simple way to have this one file automatically updated before
it gets loaded so the new build will reflect the updated build number
then I would appreciate that.

Examples and suggestions are welcome......

Thanks,

Tim Mayert.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to