From 14a0ec53532b6c24f9d84e778c1d7cccf6ee461c Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 18 May 2011 13:11:50 +0000 Subject: Fix Shell started command to not rely on the installed contributions (which may have been uninstalled) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124252 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/shell/Shell.java | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java/org/apache') diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java index 75b78be54b..7c32d47e8c 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java @@ -460,24 +460,24 @@ public class Shell { if (nodes.size() > 0) { for (Node node : nodes.values()) { out.println("Domain: " + node.getDomainName()); - List ics; - if (toks.size() > 1) { - ics = new ArrayList(); - ics.add(toks.get(1)); - } else { - ics = node.getInstalledContributionURIs(); - } - - for (String curi : ics) { - List cs = node.getStartedCompositeURIs().get(curi); - if (cs != null) { - for (String compositeURI : cs) { - out.println(" " + curi - + " " - + compositeURI); - } +// List ics; +// if (toks.size() > 1) { +// ics = new ArrayList(); +// ics.add(toks.get(1)); +// } else { +// ics = node.getInstalledContributionURIs(); +// } +// +// for (String curi : ics) { +// List cs = node.getStartedCompositeURIs().get(curi); +// if (cs != null) { + for (String curi : node.getStartedCompositeURIs().keySet()) { + for (String compositeURI : node.getStartedCompositeURIs().get(curi)) { + out.println(" " + curi + " " + compositeURI); } } +// } +// } } } return true; -- cgit v1.2.3