ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Dockter <>
Subject Resolve behavior possibly broken in 2.0-final
Date Tue, 27 Jan 2009 08:25:57 GMT
I might be missing something, but I think the resolve behavior in 2-0- 
final has a bug.

I have the following ivy.xml and ant script:

<ivy-module version="2.0" xmlns:m="">
     <info organisation="apache" module="hello-ivy"/>
	    	<conf name="compile"  transitive="false"/>
         <dependency org="org.codehaus.groovy" name="groovy-all"  
rev="1.5.7" conf="compile"/>

<project xmlns:ivy="antlib:org.apache.ivy.ant" name="hello-ivy"  
     <target name="resolve" description="--> retrieve dependencies  
with ivy">
         <ivy:resolve conf="compile" transitive="true"/>

Although the transitive argument of the resolve task is true, the  
state of the transitive property of the configuration wins. Groovy is  
not resolved transitively. This is different to the behavior of  
ivy-2.0-rc1. I think the resolve argument should always win.

If I do it vice versa the behavior is different:

	<conf name="compile"  transitive="true"/>

<ivy:resolve conf="compile" transitive="false"/>

Now the transitive argument of the resolve task wins. Groovy is not  
resolved transitively.

Should I file a Jira?

- Hans

Hans Dockter
Gradle Project lead

View raw message