Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-10-10 06:25:43 -0400
committerGlyn Normington2011-10-10 06:25:43 -0400
commit02de2eae7d3639bbc4de1dd2c6302367c0d98339 (patch)
tree210f3ae36fd58ffa612f6866d122b0ad58df9e8b
parent4d1711be1f08616adddae1b584cb504b44fe3c0b (diff)
downloadorg.eclipse.virgo.kernel-02de2eae7d3639bbc4de1dd2c6302367c0d98339.tar.gz
org.eclipse.virgo.kernel-02de2eae7d3639bbc4de1dd2c6302367c0d98339.tar.xz
org.eclipse.virgo.kernel-02de2eae7d3639bbc4de1dd2c6302367c0d98339.zip
bug 358896: remove single parent assumption in plan resolver
-rw-r--r--org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/core/internal/PlanResolver.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/core/internal/PlanResolver.java b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/core/internal/PlanResolver.java
index 8e7d6d46..f25cbb0e 100644
--- a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/core/internal/PlanResolver.java
+++ b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/deployer/core/internal/PlanResolver.java
@@ -93,12 +93,7 @@ public class PlanResolver implements Transformer {
return planInstallArtifact.getName() + SCOPE_SEPARATOR + versionToShortString(planInstallArtifact.getVersion());
}
}
- Tree<InstallArtifact> tree = installArtifact.getTree();
- Tree<InstallArtifact> parent = tree.getParent();
- if (parent != null) {
- return getArtifactScopeName(parent.getValue());
- }
- return null;
+ return installArtifact.getScopeName();
}
private static String versionToShortString(Version version) {

Back to the top