Can Ant increment a build number?

Joseph Biron

Check out Ant's optional <propertyfile> task. It has numeric incrementing capability (as well as string append and date calculation capabilities). By auto-incrementing a number from a properties file, and then reading the properties file using the <property file="..."> task you can easily implement auto-incrementing build numbers.