ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From buzzterrier <terry.je...@gmail.com>
Subject Re: resolver return wrong artifact of status
Date Fri, 10 Oct 2008 20:09:21 GMT

>>More importantly, "release-xxx" will always be considered "later"
than "milestone-yyy" regardless of the values of xxx and yyy. 

Wow, that was not at all clear from the documentation. And explains why my
revision numbers were not being updated. Also thanks for the tip on
numbering, that is a far better way to do it.


Niklas Matthies-2 wrote:
> 
> 
> If you really use the strings "milestone-1.1" and "release-1.1" as the
> revisions, then "release-1.1" will always be considered "later" than
> "milestone-1.1", because "milestone" and "release" will be compared
> lexicographically by the default latest-strategy (see [1]).
> 
> More importantly, "release-xxx" will always be considered "later"
> than "milestone-yyy" regardless of the values of xxx and yyy. For
> example "release-1.1" will be considered "later" than "milestone-2.0".
> That's probably not what you want. One way to avoid this is to use
> "1.1-milestone" and "1.1-release" instead.
> 
> But normally one doesn't encode the status into the revision string.
> Instead it's more common to have something like:
> 
>     revision    status      comment
>     -------------------------------------------------------------
>     1.1.1       milestone   Milestone 1 of product version 1.1
>     1.1.2       milestone   Milestone 2 of product version 1.1
>     1.1.3       milestone   Milestone 3 of product version 1.1
>     1.1.4       release     Release of product version 1.1
>     1.1.5       release     Bugfix release of product version 1.1
>     1.2.1       milestone   Milestone 1 of product version 1.2
>     1.2.2       milestone   Milestone 2 of product version 1.2
>     1.2.3       release     Release of product version 1.2
>     1.3.1       milestone   Milestone 1 of product version 1.3
> 
> You get the idea.    
> 
> -- Niklas Matthies
> 
> [1]
> http://ant.apache.org/ivy/history/latest-milestone/settings/latest-strategies.html
> 
> 
> 


-----
Buzzterrier

http://buzzterrier.blogspot.com/ View my blog: Ordinary Average Developer... 
-- 
View this message in context: http://www.nabble.com/resolver-return-wrong-artifact-of-status-tp19909555p19925252.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message