Look at Ant's <buildnumber/> task.  You can embed it in a target, it will 
generate a local file, named build.number which contains the universal build 
numbering or software versioning scheme, n.n.n.n. and each time your target's 
executed, the 4th position is incremented.
 
 
 
 
 
> Subject: counter or increasing a number> Date: Wed, 21 Jan 2009 17:23:51 
> +0100> From: martin.r...@ewe.de> To: user@ant.apache.org> > Hello,> > I have 
> some experience with ant but one task I couln't handle.> In my process I want 
> to replace a string in an copied file with a string increased by 1.> So it is 
> al little counter.> > For example i want to copy file A to an folder. After 
> the copy is done I want to replace an token with a string "test_001".> In the 
> next task i want to copy another file and replace the token with "test_002".> 
> How can I establish a build with such a counter?> > rgds> > Martin Ritz
_________________________________________________________________
HotmailĀ® goes where you go. On a PC, on the Web, on your phone. 
http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
 

Reply via email to