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:
parent
12d682d6fe
commit
14a0ec5353
1 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue