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
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users