ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Version dependencies
Date Mon, 05 May 2008 11:24:48 GMT
On Tue, Apr 29, 2008 at 11:40 PM, Archie Cobbs <archie@dellroad.org> wrote:

> I have a question about revision dependencies and precisely how the "+"
> wildcard works.... e.g., in a dependency like this:
>
>        <dependency conf="default->apis,impl" org="org.apache.xerces"
> name="xerces" rev="2.5+"/>
>
> I think the best way to ask the question is with a little true/false quiz
> :-)
>
> Does rev="2.5+" match "2.5.3" ?

y

>
> Does rev="2.5+" match "2.6" ?

n

>
> Does rev="2.5+" match "3.0" ?

n

>
> Does rev="2.5.+" match "2.5.3" ?

y

>
> Does rev="2.5.+" match "2.6" ?

n

>
> Does rev="2.5.+" match "3.0" ?

n

I know the syntax is confusing, but the + versions can be read as "starts
with?". If you need more powerful stuff, use version ranges.

Xavier


>
> Thanks,
> -Archie
>
> --
> Archie L. Cobbs
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message