db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hlavatý <hla...@code.cz>
Subject Re: version scheme
Date Fri, 03 Sep 2004 17:55:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel John Debrunner wrote:
> 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

You could try to run "svn info" in the root of the working copy and parse the output,
looking for a line starting with "Revision:".
But do it in Java, or it wont be portable ;)

Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQTiwEHFDePgyse5HAQIJEwf/YT8zQjh2F7cpoKCcnRvPVkl4dXpNGc03
mN8vQn55PzPlS8ay1wlzZURN2BlafX6wy4r5PrZbb9C/HC4B0RLU1Iu00KKHgCrI
MsiyIYtsz3mJTqFo97DQDYiI0TZRWvglgBwSIAp73qmpi/C2SkvFwAn+LpFAybTx
V440iZuBmm/l/LKLGgERd5nDUydfD7btIkiwu971XKbhGczn5mh3CctKsrL/6Y/s
CJ6sQZxsKO8b0rUzlaKQ3MddB2r2/u1wFnpQHfClOI/FkHR1U2RtvTMbvBlCHxdd
nb78fr7yZ+DDqxB6bcsHUZszb0RK63pUceqX1Ge9Ga+j3MlkJ0B5Cg==
=fnY2
-----END PGP SIGNATURE-----

Mime
View raw message