You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Hans Dockter (JIRA)" <ji...@apache.org> on 2008/09/17 16:23:44 UTC

[jira] Commented: (IVY-820) Global Exclusions Fail to Work Transitively

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

Hans Dockter commented on IVY-820:
----------------------------------

I think this is a critical bug that should be fixed in 2.0. I'm running into this bug by using Ivy Classes directly. It only happens for global excludes.

This exclude does not work:

{code:java}
DefaultExcludeRule excludeRule = new DefaultExcludeRule(new ArtifactId(
                new ModuleId(org, module), PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION),
                ExactPatternMatcher.INSTANCE, null);
{code}

Neither this one:

{code:java}
DefaultExcludeRule excludeRule = new DefaultExcludeRule(new ArtifactId(
                new ModuleId(org, module), PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION),
                ExactPatternMatcher.INSTANCE, null);
excludeRule.addConfiguration("*");
{code}

But this one:

{code:java}
DefaultExcludeRule excludeRule = new DefaultExcludeRule(new ArtifactId(
                new ModuleId(org, module), PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION,
                PatternMatcher.ANY_EXPRESSION),
                ExactPatternMatcher.INSTANCE, null);
excludeRule.addConfiguration("someConfiguration");
{code}

> Global Exclusions Fail to Work Transitively
> -------------------------------------------
>
>                 Key: IVY-820
>                 URL: https://issues.apache.org/jira/browse/IVY-820
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta-2
>         Environment: Java 6
>            Reporter: Julian
>
> When declaring a global exclusion, the module is excluded only from locally declared dependencies, and not their transitive dependencies.  The only way to exclude a module from an entire project, is to declare the exclusion locally for every dependency that either directly, or through a transitive dependency, relies on the module.  A detailed explanation of this issue can be found on the mailing lists here (first two posts explain the issue more thoroughly): 
> http://www.nabble.com/Global-and-Local-Excludes-Being-Ignored-By-Ivy--Config-Prblm-of-Bug---td17262577.html

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