diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-04 12:03:15 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-04 12:03:15 +0000 |
commit | 629d463e377f90304e512f082465b2bf2e3f6da4 (patch) | |
tree | 9b1fdad1195cb20c488fc781818312d88a6b4712 /sca-java-2.x/trunk/modules/shell/src/main/java | |
parent | 1b5ce3049e35976edb5158bb7a13d2c39598d977 (diff) |
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
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.java | 5 |
1 files changed, 5 insertions, 0 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 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 <contributionURL>");
out.println(" remove <contributionURL>");
out.println(" addDeploymentComposite <contributionURL> <content>");
@@ -140,6 +143,7 @@ public class Shell { out.println(" listDeployedCompostes <contributionURI>");
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))));
}
|