Hi Rebecca,

There is the value NoIncrement for the buildtype attribute. Unfortunately it 
does not exists for revisiontype. I'm sure there is a reason for that, but 
since I'm also new to those build things I cannot tell you that reason.

However, for your wish there could be a work around. I assume that you don't 
use the content of the Version-file directly. Set the buildtype attribute to 
NoIncrement and leave revisiontype with Increment. Now you use the properties 
that are generated by the version task different: Exchange the meaning of the 
build and the reivsion number for the further procedure. So if you write those 
numbers into an item use them exchanged. Of course you have to exchange the 
numbers within the file. In the file must be not written '3.0.100.1' . After 
the next version task call it should be then '3.0.100.2'.

Robert



Anyone, 
I am a newbie to Nant and am using the version task. 
I created a file with the contents:  3.0.0.100 
I want the version task to update this file as follows: 
3.0.1.100 
3.0.2.100 
This is what I am doing. 
<version buildtype="Increment" revisiontype="Increment" path="${pwd}\Version"/> 
But the results are: 
3.0.1.0 
3.0.2.0 
It is changing the revision and I do not want it to ever change it.  I tried to 
leave the revisiontype off but that did nothing for me.
Can someone tell me how to achieve what I want? 
Thanks 
Rebecca 



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to