ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Miller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-1223) ivy:info does not resolve the correct revision with returnFirst="true" on a chain resolver
Date Mon, 06 Sep 2010 02:41:32 GMT

    [ https://issues.apache.org/jira/browse/IVY-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906420#action_12906420
] 

Steve Miller commented on IVY-1223:
-----------------------------------

Hi Tim,
  I'm not an expert with Ivy, but I went ahead and tried to reproduce what you have described.
I created a simple module and published it first as revision 9.5.0.0.1322 in one filesystem
repository, and then again as 1.0-SNAPSHOT in a second filesystem repository. I then set up
the two filesystem resolvers in my ivysettings.xml file. Then created a chain resolver, with
two resolvers using refs inside, pointing to the two filesystem ones above.  Anyhow.. after
all that setup, I can switch the returnFirst from true to false and back again, and ivy:info
returns the snapshot when set to true, and the 9.5... when set to false. So maybe create a
separate test app and try what I did, and see if you are still seeing the behavior.  I'm not
sure if it matters, but clear your cache just in case.

> ivy:info does not resolve the correct revision with returnFirst="true" on a chain resolver
> ------------------------------------------------------------------------------------------
>
>                 Key: IVY-1223
>                 URL: https://issues.apache.org/jira/browse/IVY-1223
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.2.0-RC1
>         Environment: Windows XP, Eclipse 3.5, IvyDE plugin
>            Reporter: Tim A
>
> ivy:info does not appear to be honouring returnFirst="true" on a chain resolver.
> The default resolver is configured as follows:
> 		<chain name="default" returnFirst="true">
> 			<resolver ref="local"/>
> 			<resolver ref="main"/>
> 		</chain>
> Revision 1.0-SNAPSHOT of module A exists in local, and revision 9.5.0.0.1322 of module
A exists in main.  The following call:
> 		<ivy:info organisation="X" module="A" revision="latest.integration" />
> resolves 9.5.0.0.1322, which is located in main.  1.0-SNAPSHOT from local should have
been resolved, because of returnFirst="true".
> If module B has a dependency on module A, and B calls ivy:resolve, then 1.0-SNAPSHOT
is the version that is resolved, which is correct.
> Using ivy:findrevision gives the same problem as using ivy:info.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message