geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r576615 - in /geronimo/sandbox/gshell/trunk/gshell-remote: gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/ gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/
Date Mon, 17 Sep 2007 22:35:10 GMT
Author: jdillon
Date: Mon Sep 17 15:35:09 2007
New Revision: 576615

URL: http://svn.apache.org/viewvc?rev=576615&view=rev
Log:
Get the location URI from the command-line

Modified:
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServerCommand.java

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java?rev=576615&r1=576614&r2=576615&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
Mon Sep 17 15:35:09 2007
@@ -29,6 +29,7 @@
 
 import org.apache.geronimo.gshell.command.CommandSupport;
 import org.apache.geronimo.gshell.command.annotation.CommandComponent;
+import org.apache.geronimo.gshell.clp.Argument;
 import org.codehaus.plexus.component.annotations.Requirement;
 
 /**
@@ -40,14 +41,15 @@
 public class RshCommand
     extends CommandSupport
 {
+    @Argument(required=true)
+    private URI location;
+
     @Requirement
     private RshClientFactory factory;
 
     private RshClient client;
 
     protected Object doExecute() throws Exception {
-        URI location = new URI("ssl://localhost:9999");
-
         io.out.println("Connecting to: " + location);
 
         client = factory.connect(location);

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServerCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServerCommand.java?rev=576615&r1=576614&r2=576615&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServerCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServerCommand.java
Mon Sep 17 15:35:09 2007
@@ -21,6 +21,7 @@
 
 import java.net.URI;
 
+import org.apache.geronimo.gshell.clp.Argument;
 import org.apache.geronimo.gshell.command.CommandSupport;
 import org.apache.geronimo.gshell.command.annotation.CommandComponent;
 import org.codehaus.plexus.component.annotations.Requirement;
@@ -34,14 +35,15 @@
 public class RshServerCommand
     extends CommandSupport
 {
+    @Argument(required=true)
+    private URI location;
+
     @Requirement
     private RshServerFactory factory;
 
     private RshServer server;
 
     protected Object doExecute() throws Exception {
-        URI location = new URI("ssl://localhost:9999");
-
         server = factory.connect(location);
 
         io.out.println("Listening on: " + location);



Mime
View raw message