Hi Jeff, This case you are reporting looks a lot like this bug:
https://issues.apache.org/jira/browse/IVY-983 -Ben On Saturday 30 May 2009 08:41:11 am Jeffrey Sinclair wrote: > Should I consider this as a bug and file a JIRA? > > Jeff > > On Mon, 2009-05-04 at 12:56 +0100, Jeffrey Sinclair wrote: > > Hi Saran, > > > > Perhaps I've misunderstood but I don't see how this answers my question. > > > > In my case I am only going to depend on the tests-unit configuration and > > am expecting junit to be excluded. > > > > Jeff > > > > On Mon, 2009-05-04 at 15:46 +0400, S Saravanan wrote: > > > Hi jefferey, > > > > > > It includes all the ivy standard. > > > > > > Thanks > > > Saran S > > > > > > -----Original Message----- > > > From: Jeffrey Sinclair [mailto:[email protected]] > > > Sent: Monday, May 04, 2009 5:13 PM > > > To: [email protected] > > > Subject: exclude does not work when dependency is in inherited config > > > > > > ivy-user, > > > > > > I'm finding that an exclude does not work when the dependency being > > > excluded is inherited from a parent configuration. Is this deliberate > > > or a bug? I was expecting it to be excluded. > > > > > > Take the following ivy.xml file: > > > > > > <ivy-module version="2.0"> > > > <info organisation="co.uk.cooljeff" module="exclude-issue" > > > status="integration"/> > > > <configurations> > > > <conf name="runtime" /> > > > <conf name="tests-unit" extends="runtime" /> > > > </configurations> > > > <publications /> > > > <dependencies> > > > <dependency org="junit" name="junit" rev="4.4" > > > conf="runtime->default" /> > > > <exclude org="junit" module="junit" conf="tests-unit" /> > > > </dependencies> > > > </ivy-module> > > > > > > junit is inherited from the runtime configuration, however it is not > > > excluded. > > > > > > If I were to explicitly add tests-unit to the junit dependency, the > > > exclude works: > > > > > > <dependency org="junit" name="junit" rev="4.4" > > > conf="runtime,tests-unit->default" /> > > > > > > Regards, > > > > > > Jeff
