From 629d463e377f90304e512f082465b2bf2e3f6da4 Mon Sep 17 00:00:00 2001 From: antelder Date: Sun, 4 Jul 2010 12:03:15 +0000 Subject: Add the Tuscany build info to the help and display help when first started git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@960330 13f79535-47bb-0310-9956-ffa450edef68 --- .../shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java') 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 03a6967a6a..dda2e441af 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 @@ -39,6 +39,7 @@ import org.apache.tuscany.sca.monitor.ValidationException; import org.apache.tuscany.sca.node2.Node; import org.apache.tuscany.sca.node2.NodeFactory; import org.apache.tuscany.sca.runtime.ActivationException; +import org.apache.tuscany.sca.runtime.Version; /** @@ -130,8 +131,10 @@ public class Shell { } boolean help() { + out.println("Apache Tuscany Shell (" + Version.getVersion() + " " + Version.getRevsion() + " " + Version.getBuildTime() + ")"); out.println("Commands:"); out.println(); + out.println(" help"); out.println(" install "); out.println(" remove "); out.println(" addDeploymentComposite "); @@ -140,6 +143,7 @@ public class Shell { out.println(" listDeployedCompostes "); out.println(" listInstalledContributions"); out.println(" printDomainLevelComposite"); + out.println(" status"); out.println(" stop"); out.println(); return true; @@ -231,6 +235,7 @@ public class Shell { } public void run() throws IOException { + help(); final BufferedReader r = new BufferedReader(new InputStreamReader(in)); while(apply(eval(read(r)))); } -- cgit v1.2.3