summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java8
1 files changed, 4 insertions, 4 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 b6bd70a5cb..f9bd9fda1e 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
@@ -358,7 +358,7 @@ public class Shell {
public boolean stop(List<String> toks) throws ActivationException {
String curi = toks.get(1);
if (toks.size() > 2) {
- getNode().removeFromDomainLevelComposite(curi, toks.get(2));
+ getNode().stop(curi, toks.get(2));
} else {
if (standaloneNodes.containsKey(curi)) {
standaloneNodes.remove(curi).stop();
@@ -370,7 +370,7 @@ public class Shell {
}
} else {
for (String compositeURI : getNode().getDeployedComposites(curi)) {
- getNode().removeFromDomainLevelComposite(curi, compositeURI);
+ getNode().stop(curi, compositeURI);
}
}
}
@@ -392,7 +392,7 @@ public class Shell {
Contribution c = getNode().getInstalledContribution(curi);
for (Artifact a : c.getArtifacts()) {
if (compositeURI.equals(a.getURI())) {
- getNode().addToDomainLevelComposite(curi, compositeURI);
+ getNode().start(curi, compositeURI);
return true;
}
}
@@ -401,7 +401,7 @@ public class Shell {
URL url = IOHelper.getLocationAsURL(compositeURI);
InputStream is = IOHelper.openStream(url);
BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8"));
- getNode().addDeploymentComposite(curi, br);
+ getNode().start(curi, br);
} catch (Exception e) {
System.out.println(e);
}