ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Dockter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-820) Global Exclusions Fail to Work Transitively
Date Wed, 17 Sep 2008 14:23:44 GMT

    [ 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.


Mime
View raw message