summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-10-11 08:03:27 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-10-11 08:03:27 +0000
commitb95b478b0c02506d33bfd5f688bb7cccf2a999e4 (patch)
tree85e7229c192371ffd8bab3b07d83e6b29201849d /sca-java-2.x/trunk/modules
parent507fff6345ac0955e656683aebed44f3d49a94ed (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java2
1 files changed, 1 insertions, 1 deletions
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));
}
}