From 600addf88f1343a2639270adc36c6752a5bb9b62 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 29 Sep 2010 15:49:34 +0000 Subject: 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 --- .../shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/shell/src') 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 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); } } } -- cgit v1.2.3