summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-09-29 15:49:34 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-09-29 15:49:34 +0000
commit600addf88f1343a2639270adc36c6752a5bb9b62 (patch)
tree4ea03b2a3b64f3e349a28d7eb5def4ad095ec511 /sca-java-2.x/trunk/modules/shell
parent2f3b1e85e47d0f5a7a7005b408e731aa42023b90 (diff)
Add a ***running*** string to the output to show which composites in an installed contribution are running
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1002699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java4
1 files changed, 3 insertions, 1 deletions
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 7046586828..1f4faf222d 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
@@ -166,10 +166,12 @@ public class Shell {
for (String curi : curis) {
out.println(curi + " " + getNode().getInstalledContribution(curi).getLocation());
Contribution c = getNode().getInstalledContribution(curi);
+ List<String> deployeds = getNode().getDeployedComposites(curi);
for (Artifact a : c.getArtifacts()) {
if (a.getModel() instanceof Composite) {
Composite composite = (Composite)a.getModel();
- out.println(" " + composite.getURI() + " " + composite.getName());
+ String running = deployeds.contains(composite.getURI()) ? "***running***" : "";
+ out.println(" " + composite.getURI() + " " + composite.getName() + " " + running);
}
}
}