... and when we'll have expression evaluator in place you will be able to
write:
<property name="version.build.plus.one" value="${version.build + 1}" />
Meanwhile, you may try NAnt with Expression Evaluator test1 (not recommended
for production use as the syntax is likely to change) at:
http://jaak.sav.net/nant-ee/nant-ee-test1.zip
Jarek
----- Original Message -----
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "Morris, Jason" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, December 07, 2003 12:20 PM
Subject: Re: [Nant-users] Trying to auto increment my build number
> Maybe this will solve your problem instead (using flat file instead of
xml):
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg01256.html
>
> Jarek
> ----- Original Message -----
> From: "Morris, Jason" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 07, 2003 9:48 AM
> Subject: [Nant-users] Trying to auto increment my build number
>
>
> I need some advice on the best way to auto-increment my build number.
>
> I have taken a look at the <version> task in the nantcontrib project,
> but that is not what I am looking for. I am looking for simple ability
> to do arithmetic.
>
> I want to take a property (which is a number), add one to it so that I
> can use it in other places within my build script.
>
> I want to use <xmlpeek> and <xmlpoke> to read and persist the small xml
> file that represents my projects build version. It looks like this...
>
> <buildversion>
> <major>3</major>
> <minor>2</minor>
> <bugfix>0</bugfix>
> <build>75</build>
> </buildversion>
>
> So after executing my build script, the xml would look like this
>
> <buildversion>
> <major>3</major>
> <minor>2</minor>
> <bugfix>0</bugfix>
> <build>76</build>
> </buildversion>
>
> I have attached a sample build file to indicate the things I would like
> to do.
>
> Anyone have any advice in what would be the best way to solve this
> problem? Is the <script> task applicable for this situation?
>
> Thanks,
> Jason
>
>
> <<buildversion.xml>> <<test.build>>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users