This is a basic task that can be used to track build numbers.
It will first attempt to read a build number from a file (by default,
build.number in the current directory), then
set the property
build.number to the value that was read in
0, if no such value). It will then increment the
number by one and write it back out to the file.
if you need finer control over things such as the property name or
the number format.)
|file||The file to read and write the build number from/to.||No; defaults to "build.number"|
Read, increment, and write a build number to the default file,
Read, increment, and write a build number to the file
Copyright © 2002,2004 The Apache Software Foundation. All rights Reserved.