On Tue, 2009-07-21 at 10:19 +0200, Hans Dockter wrote: > You can define such rules yourself. > > build.gradleVersion gives you the version number.
As a string -- which is fine. Development versions have numbering
X.Y-ZZZZZZZZZ so by splitting on - this can them be interpreted as a
real number to create a total order. However I think release numbers
are of the form X.Y.Z so cannot be given a real number interpretation --
this means doing things like splitting on . and then testing.
All this is boilerplate code and I think therefore something should be
added to Gradle to allow for version number testing. I guess this means
a small class to represent the version numbers so that it can then have
the operators implementing a total order.
build.gradleVersion would then become an instance of this class with the
standard transformations to a string.
--
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
