What are current best-practices for systematic build numbering and version number management in Java projects? Specifically:
How to manage build numbers sy
Software:
Hudson has three builds/jobs: Continuous, Nightly and Release.
For a Continuous/Nightly build: Build number is the SVN revision, found using svntask.
For a Release build/job: Build number is the Release number, read by Ant, from a Properties file. The properties file can also be distributed with the release for displaying the build number at runtime.
The Ant build script puts the build number in the manifest file of jar/war files that are created during the build. Applies to all builds.
Post-build action for Release builds, done easily using a Hudson plug-in: tag SVN with the build number.
Benefits:
Hope this helps.