ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: patch (ivy): log conflict results at verbose
Date Thu, 08 Jan 2009 16:12:42 GMT
These log messages are confusing, beacause they are not resolve time
conflicts, but retrieve time conflicts: when Ivy retrieves a set of
artifact, if it has to retrieve two artifacts to the same location, it
complains about a conflict. For instance if you have a dependency on
acme#foo;1.0 in conf A and acme#foo;2.0 in conf B, then retrieve both confs
together with a pattern in which you do not put neither the conf nor the
revision, Ivy will inform about these "conflicts", and select the latest
version (this behaviour is not currently pluggable nor configurable).

IMO adding an option to put these messages at verbose level would be nice,
what could be even better is to make the behaviour pluggable/configurable,
and make the message explicit to tell that this is a retrieve conflict, not
a resolve conflict.

Xavier

On Thu, Jan 8, 2009 at 12:30 AM, Maarten Coene <maarten_coene@yahoo.com>wrote:

> I never saw this message before.
> Could you create a JIRA issue and attach the relevant log when running ant
> in verbose mode? That should also tell us which are the conflicting
> artifacts.
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: Robey Pointer <robeypointer@gmail.com>
> To: Ant Developers List <dev@ant.apache.org>
> Sent: Wednesday, January 7, 2009 5:29:01 AM
> Subject: Re: patch (ivy): log conflict results at verbose
>
> On 6 Jan 2009, at 12:14, Maarten Coene wrote:
>
> > I'm not convinced that this is the proper way to solve your problem.
> > If they are not conflicts, they shouldn't get logged as conflict. Could
> you give us more info and an example of your log?
>
> I agree, since they aren't conflicts, even the word "conflict" in the
> message is misleading. I just didn't want to change too much -- the real
> problem is that it's logged at info level and can't be quieted. Feel free to
> change the text.
>
> The messages are things like this:
>
> [ivy:retrieve]     conflict on
> /Users/robey/code/scala/configgy/target/libs/default/scala-library-2.7.2.jar
> in [default]: 2.7.2 won
> [ivy:retrieve]     conflict on
> /Users/robey/code/scala/configgy/target/libs/test/scala-compiler-2.7.2.jar
> in [test]: 2.7.2 won
> [ivy:retrieve]     conflict on
> /Users/robey/code/scala/configgy/target/libs/test/scala-library-2.7.2.jar in
> [test]: 2.7.2 won
>
> I see them in every project I build, at home or at work. Just build a few
> different projects and you will see them. I gather that the real message
> should be something along the lines of "I found jars in your cache and
> picked the one you asked for".
>
> robey
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>


-- 
Xavier Hanin - 4SH France
BordeauxJUG co leader - http://www.bordeauxjug.org/
Blogger - http://xhab.blogspot.com/
Apache Ivy Creator - http://ant.apache.org/ivy/

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