I've tried using the version task... The documentation describes how to call it ok, but doesn't explain what the 'build.number' file should contain... Just a number, a number in a particular format (i.e. 1.0.1), or a number inside of an XML tag. So far I haven't been able to figure out what the task is expecting in there.... It finds the file but complains about the format of the string that's inside it.
My temporary solution was to have the user enter the build number from the command line into a property - then use xmlpeek and xmlpoke to save it to a file. Jamie -----Original Message----- From: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 9:45 AM To: Landes Eric (RBNA/CIT4.2); [EMAIL PROTECTED] Subject: Re: [Nant-users] Version Task question According to the task documenation, the resulting version string is entered in a property named "sys.version". If you want to change it, you may use the "prefix" attribute. I've looked at: http://nantcontrib.sourceforge.net/nightly/help/tasks/version.html Hope it helps. Jarek ----- Original Message ----- From: "Landes Eric (RBNA/CIT4.2)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 08, 2004 3:31 PM Subject: [Nant-users] Version Task question > Does anyone have an example of how to use this? I want to grab the next version number to do a label in my sourcesafe repository. I'm thinking from the docs the syntax is > <version buildtype=monthday revisiontype=automatic path=build.number /> > > But how do I get a value from this. Is it even possible? Since I'm a newbie to all this, I know this is probably a simple one. So if anyone has any examples, I would appreciate seeing them. I've looked on John Lams site, but could not find the actual build file example of using this. TIA > > Eric L. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users