summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-19 10:56:05 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-19 10:56:05 +0000
commit0cd3f93d21ddede589827c9bf7c1e40b9543523f (patch)
treeef3aba49987a4cc0b43cbce8effb94a37557044c /sca-java-2.x/trunk/modules/shell
parent0e7d64a2d83676bcef0b34c02af656db32942605 (diff)
Update to not show the initial help when starting up with an installed contribution
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1036802 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.java11
1 files changed, 5 insertions, 6 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 d91d94219a..66af167b0c 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
@@ -29,9 +29,6 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
@@ -92,7 +89,7 @@ public class Shell {
if (contribution != null) {
shell.install(Arrays.asList(new String[]{"install", contribution, "-start"}));
}
- shell.run();
+ shell.run(contribution==null);
}
public Shell(String domainURI, boolean useJLine) {
@@ -633,8 +630,10 @@ public class Shell {
}
}
- public void run() throws IOException {
- help(null);
+ public void run(boolean initialHelp) throws IOException {
+ if (initialHelp) {
+ help(null);
+ }
Object reader;
if (useJline) {
reader = JLine.createJLineReader(this);