I tried to use the version task but since our last number is 100, it would always force it to a 0.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Arnette Sent: Thursday, December 15, 2005 12:21 PM To: nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Automatically updating build number on nightly builds NAntContrib (nantcontrib.sf.net) has the <version> task. We use it to increment the build numbers in our builds and then check the build.number file into the source repository (SVN). <!-- ======================================================================== Incrementing and committing build number ======================================================================== = --> <target name="increment-build-number"> <version buildtype="NoIncrement" revisiontype="Increment" path="build.number"/> <loadfile file="build.number" property="build.version"/> </target> <target name="commit-build-number"> <echo message="commit build.number -m "Incrementing build number: ${build.version}""/> <exec program="svn" commandline="commit build.number -m "Incrementing build number: ${build.version}"" /> <exec program="svn" commandline="update build.number" /> </target> ------------------------------------------------------- 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_id=7637&alloc_id=16865&op=click _______________________________________________ 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