ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Barlow <sbar...@peopledoc.com>
Subject Re: incrementing a build number
Date Thu, 20 Jul 2000 15:08:14 GMT

By 'script task' do you mean the Exec task to run a bat file.
How do I feed what I do in the exec task back into the property
for the rest of ant to use?

The replace command sounds like the write way to write it
out again.


Stefan Bodewig wrote:
> 
> >>>>> "SB" == Stuart Barlow <sbarlow@peopledoc.com> writes:
> 
>  SB> Do I need to write my own task?
> 
> I'm afraid yes, but I might be wrong.
> 
> Reading the number from a file is simple (use the file attribute of
> <property>). Creating a new property with the incremented number could
> be done using a script task - though I haven't tried it. But I don't
> see how you could write this number back into the file you've read the
> original number from.
> 
> Using a replace task could be the solution for that - probably using
> scripting again.
> 
> Stefan

-- 
---------------------------------------------------------------------------
Stuart Barlow
+44 131 468 8205

Mime
View raw message