From 0cd3f93d21ddede589827c9bf7c1e40b9543523f Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 19 Nov 2010 10:56:05 +0000 Subject: 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 --- .../src/main/java/org/apache/tuscany/sca/shell/Shell.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sca-java-2.x/trunk/modules/shell') 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); -- cgit v1.2.3