Ryan, Thanks for the update, I'll review your patch (I might change the name of the new revision type from 'none' to 'noincrement') and commit it tomorrow (as I'm also considering other minor changes to the <version> task) ...
Gert ----- Original Message ----- From: "Cromwell, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 21, 2004 6:22 PM Subject: [NAntC-Dev] Update to VersionTask. I needed this because we have branched a number of our projects, yet build to the root of the branches. A little odd maybe, but it works our really well. Anyways, I needed to get the version number without updating either the build or revision. All I've really done is add a revisiontype of "none" and just don't do anything to the revision number when that happens. So a buildtype of noincrement and revisiontype of none give that to me. -----Original Message----- From: Cromwell, Ryan Sent: Wednesday, January 21, 2004 12:17 PM To: NAnt User List (E-mail) Subject: RE: [Nant-users] Version task to get version without increment/update OK I decided to be productive. I spent the ten seconds required to add this in there. I've attached the newer version of the VersionTask.cs. Doing a diff will show you that not much has changed. I'll submit this to NantContrib dev list, as well, in the hopes that someone of might and power will bless this change into the codebase. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Cromwell, Ryan Sent: Wednesday, January 21, 2004 11:40 AM To: NAnt User List (E-mail) Subject: [Nant-users] Version task to get version without increment/update I was going to post a question as to whether or not you could use the version task to get the version without incrementing it, but I decided to be somewhat self sufficient and I opened the source. <RANT> This feature soooo should have been in there to begin with. I have come to this conclusion solely on my personal irritation with it not existing and my need for it to exist. One more RevisionType of "none" which returns the CalculateVersionNumber method then just returns the original versionNumber variable. I will now brood over my discontent. </RANT> Anyone have this same problem that they've resolved without changing the VersionTask? ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer