On 6/25/05, Bert Robbins (Documentum) <[EMAIL PROTECTED]> wrote:
>  
> 
> All, 
> 
> I need to peek a value out of an XML file, add 1 to it, and then poke that
> new value into the XML file. I have the peeking and poking working. However,
> I am confused about how to take a property's value and add 1 to it. 
> 
> Thanks 
> 
> Bert Robbins 

Bert,

You can use the expression syntax added after version 0.84 to
increment numbers... unfortunately the syntax isn't obvious:

To increment the property 'number'...
<property name="number" value="${int::parse(number) + 1}" />


-- 
Troy


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to