I want to construct the build.version property in my Ant script and make it available in the QuickBuild configuration.
Background:
Ant is our reference build system. CI engines like Luntbuild/QuickBuild/CruiseControl/Anthill are just convenience tools.
I want the exact same result no matter if I start Ant manually from the command line or if it is invoked by some CI engine.
Our Ant scripts construct the version string by combining the content of a version.properties file in the root of the project with the result of a custom Ant target that picks up the highest Perforce change number for that particular depot path.
By doing it this way, we have eliminated the need for labeling, since all published artifacts have a name that includes the Perforce changelist number. And as you perhaps know, a Perforce changelist number identifies a snapshot of the repository!
What I would like to have is a mechanism for setting QuickBuild OGNL values from a custom script. Groovy is particularly well suited for this, since it integrates seamlessly with Ant.
Regards,
Olle