Search code examples
antbuild-numbers

Ant Incremental build numbers for zip names


I'm doing a project at uni and would like to create zip files which name (just a build number) increments after each successful build.

What's the easiest way to do this? Is it a case of having to write a custom task? Or is there some built in functionality that will allow me to do this simply and easily?

I did have a look at the Zip task manual, but couldn't spot anything that might be useful.


Solution

  • Have you seen the BuildNumber task?

    Run that task, and then name the zip file based on the property.