-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
| A build number can also be set which corresponded to the Perforce (SCM) | global change number for Cloudscape
Does anyone know of any neat tricks to get the subversion global revision number into an ant task?
To get the SVN number into the built jars as the build number, a script something like this is needed
SVN_CHANGE=`some way to get revision number out of SVN` ant -Dchangenumber=$SVN_CHANGE buildjars
This allows the full version string to reference the SVN revision number of the corresponding code. This is obviously useful in debugging older versions without having to resort to a version to revision number map.
e.g. partial output from sysinfo with changenumber set to 37135
- --------- Derby Information -------- [/home/djd/derby/jars/insane/derby.jar] 10.0.2.0 - (37135)
Dan. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBOKsDIv0S4qsbfuQRAvTlAJ4/+FON9wu0POmarzM/Nq4IoNbA/ACgz23G bR2cKVb7WmgEZL42HMrbzS4= =ubog -----END PGP SIGNATURE-----
