On Jul 21, 2009, at 10:43 AM, Russel Winder wrote:
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.
Good point. Could you write a Jira to provide such a Version class? An
implementation would also be excellent :)
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email