Geez... That worked. I must've only gone up to 1.0.0 - which doesn't work.

Thank you,

Jamie

-----Original Message-----
From: Landes Eric (RBNA/CIT4.2) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Version Task question


This format worked for me in my build.number file
1.0.0.0
Nant also automatically updates the file when I call it.  In my nant build
file here is the relevant info from my build file:

                <version buildtype="increment" revisiontype="increment"
path="build.number" />

                <vsslabel
            dbpath="C:\srcsafe.ini"
            path="$/MyProject"
            user="user"
            password="password"
            comment="NAnt Test label"
            label="Version ${sys.version}"
        />


HTH

Eric
-----Original Message-----
From: Waldinger, Jamie [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:11 AM
To: Jaroslaw Kowalski; Landes Eric (RBNA/CIT4.2);
[EMAIL PROTECTED]
Subject: RE: [Nant-users] Version Task question


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


-------------------------------------------------------
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

Reply via email to