From b95b478b0c02506d33bfd5f688bb7cccf2a999e4 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 11 Oct 2011 08:03:27 +0000 Subject: Update to not include the root contribution as a duplicate dependency git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1181649 13f79535-47bb-0310-9956-ffa450edef68 --- .../domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java index d8369e7975..9064f57533 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java @@ -473,7 +473,7 @@ public class NodeImpl implements Node { } else { for (Import imprt : loadContribution(cd).getImports()) { for (ContributionDescription exportingIC : findExportingContributions(imprt)) { - if (!!!dependentContributions.containsKey(exportingIC.getURI())) { + if (!!!dependentContributions.containsKey(exportingIC.getURI()) && !!!cd.getURI().equals(exportingIC.getURI())) { dependentContributions.put(exportingIC.getURI(), loadContribution(exportingIC)); } } -- cgit v1.2.3