ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Baas (JIRA)" <>
Subject [jira] Created: (IVY-821) An empty exclusion tag results in an IllegalArgumentException ...
Date Mon, 26 May 2008 13:11:58 GMT
An empty exclusion tag results in an IllegalArgumentException ... 

                 Key: IVY-821
             Project: Ivy
          Issue Type: Bug
    Affects Versions: 2.0.0-beta-2
            Reporter: Han Baas

At this moment i am working on a JBoss Seam project which i want to build with ant and ivy.
Ivy works fine but there is one small problem i encountered. I have a jboss-embedded-all.pom
which has an empty exclusion tag (see below). 
    <exclusion /> 

When i try to resolve this dependency i get an IllegalArgumentException (name is null). One
could argument if an empty exclusion tag should be valid but that's a different discussion
... For the moment i have solved this problem by changing the code slightly and rebuild the
ivy project. The code i have changed can be found  in the inner class PomDependencyData (of
org.apache.ivy.plugins.parser.m2.PomReader) and is as follows (i only added the if statement).
For me this works fine ...

 if (groupId != null && arteficatId != null) {
    exclusions.add(ModuleId.newInstance(groupId, arteficatId));

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

View raw message