ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Sinclair <>
Subject exclude does not work when dependency is in inherited config
Date Mon, 04 May 2009 11:42:55 GMT

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="" module="exclude-issue"
    <conf name="runtime" />
    <conf name="tests-unit" extends="runtime" />
  <publications />
    <dependency org="junit" name="junit" rev="4.4"
                conf="runtime->default" />
    <exclude org="junit" module="junit" conf="tests-unit" />

junit is inherited from the runtime configuration, however it is not

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" />



View raw message