summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell/src/main/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 19:28:39 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 19:28:39 +0000
commitc542da54685cb64b6a29cd9e76c31ed88d0594dc (patch)
treeb75988b6271b0703b47e73b4816606822d30577d /sca-java-2.x/trunk/modules/shell/src/main/java
parentf4a1d08ee09312e7c00db765e393d178e398d6b1 (diff)
Update shell to show the command text when installing an initial contribution
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1071019 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java12
1 files changed, 7 insertions, 5 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 29d30f2acf..152b67a9dc 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
@@ -90,12 +90,17 @@ public class Shell {
}
}
Shell shell = new Shell(domainURI, useJline);
+ if (showHelp || contribution==null) {
+ shell.help(null);
+ }
if (contribution != null) {
+ System.out.println();
+ System.out.println("install " + contribution + " -start");
shell.install(Arrays.asList(new String[]{"install", contribution, "-start"}));
}
- shell.run(showHelp || contribution==null);
+ shell.run();
}
public Shell(String domainURI, boolean useJLine) {
@@ -665,10 +670,7 @@ public class Shell {
}
}
- public void run(boolean initialHelp) throws IOException {
- if (initialHelp) {
- help(null);
- }
+ public void run() throws IOException {
Object reader;
if (useJline) {
reader = JLine.createJLineReader(this);