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
This commit is contained in:
antelder 2011-05-18 13:11:50 +00:00
parent 12d682d6fe
commit 14a0ec5353

View file

@ -460,24 +460,24 @@ public class Shell {
if (nodes.size() > 0) {
for (Node node : nodes.values()) {
out.println("Domain: " + node.getDomainName());
List<String> ics;
if (toks.size() > 1) {
ics = new ArrayList<String>();
ics.add(toks.get(1));
} else {
ics = node.getInstalledContributionURIs();
}
for (String curi : ics) {
List<String> cs = node.getStartedCompositeURIs().get(curi);
if (cs != null) {
for (String compositeURI : cs) {
out.println(" " + curi
+ " "
+ compositeURI);
}
// List<String> ics;
// if (toks.size() > 1) {
// ics = new ArrayList<String>();
// ics.add(toks.get(1));
// } else {
// ics = node.getInstalledContributionURIs();
// }
//
// for (String curi : ics) {
// List<String> 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;