How would you write a build.xml file, using neither custom code nor external dependencies (such as a shell script), that:
build_info.properties will be created during build in your project
folder You could write all information about your build in this file.
After first build the file build_info.properties will be placed in the repository. You can change and commit any number (major, minor, build numbers) by your self when ever you want, or increase it automatically during build like build.number in the example below.
Using svnant 1.3.0:
Checking out revision ${param_SubProjectSvnREV} of project: ${param_SubProjectSvnName}