On Tue, 2009-10-27 at 11:08 -0400, John Murph wrote: > Hans, > Also, I suggest you get it from the IMPLEMENTATION > VERSION section of the manifest and not by parsing the > jar file name. > > Because you think this is more reliable?
> I think it is better form that parsing the file name, because of the
> reliability issue. It also happens to enforce that the version
> information is put in the jars manifest, which is nice. But mostly,
> because that's how IDEA determines the version of Gradle and
> consistency is good.
Gant originally parsed the jar name to get the version number but this
proved seriously unreliable in situations such as Debian and Ubuntu
where the version number is removed for packaging.
Also perverse people might just change the version number embedded in
the file name just for the hell of it.
So I switched to ensuring the version was put into the jar metadata, aka
manifest, and getting it from there. Much more reliable.
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084 voip: sip:[email protected]
London SW11 1EN, UK m: +44 7770 465 077 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
