tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r960330 - /tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
Date Sun, 04 Jul 2010 12:03:15 GMT
Author: antelder
Date: Sun Jul  4 12:03:15 2010
New Revision: 960330

URL: http://svn.apache.org/viewvc?rev=960330&view=rev
Log:
Add the Tuscany build info to the help and display help when first started

Modified:
    tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java

Modified: tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java?rev=960330&r1=960329&r2=960330&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
Sun Jul  4 12:03:15 2010
@@ -39,6 +39,7 @@ import org.apache.tuscany.sca.monitor.Va
 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))));
     }



Mime
View raw message