ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Watson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-731) buildlist evicts modules with the same name, but different organisation
Date Wed, 26 Mar 2008 11:29:24 GMT

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

Dave Watson commented on IVY-731:
---------------------------------

I've experienced the same problem and having looked at the org.apache.ivy.ant.IvyBuildList
source, only the moduleId is used as the key to place ModuleDescriptors into a Map. Checkout
line 196 (2.0.0-beta-1) or 205 (2.0.0-beta-2). I had a play and made a crude change of that
line from:
mdsMap.put(md.getModuleRevisionId().getModuleId().getName(), md);
to:
mdsMap.put(':' + mri.getOrganisation() + ':' + mri.getModuleId().getName() + ':', md);

This appeared to fix the problem shown in your example. Hope this helps anyone fixing code.


> buildlist evicts modules with the same name, but different organisation
> -----------------------------------------------------------------------
>
>                 Key: IVY-731
>                 URL: https://issues.apache.org/jira/browse/IVY-731
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-alpha-1, 2.0.0-alpha-2, 2.0.0-beta-1
>         Environment: Ant 1.7.0, Java 1.4.2, OSX 10.5.1
>            Reporter: George Armhold
>             Fix For: 2.0
>
>         Attachments: ivy-bug.tar.gz
>
>
> I believe there is a bug in ivy:buildlist.  I have two modules with the same module name,
but different organisation names.  If I try to build them under a single ant/ivy invocation,
the 2nd module is removed (evicted?) from the build, presumably because there is already a
module with the same name, albeit with a different organisation. Shouldn't the organisation
attribute distinguish the two modules?   
> The two modules look like this: 
>    <ivy-module version="1.4"> 
>      <info module="common" organisation="initech-division-A" revision="1.0"/> 
>    </ivy-module> 
>    <ivy-module version="1.4"> 
>      <info module="common" organisation="initech-division-B" revision="1.0"/> 
>    </ivy-module> 
> I've attached a tar file containing an example that demonstrates this. Please let me
know if any further information would be helpful, and thanks for your time.

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