geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r560004 - /geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy
Date Thu, 26 Jul 2007 21:45:34 GMT
Author: jdillon
Date: Thu Jul 26 14:45:33 2007
New Revision: 560004

URL: http://svn.apache.org/viewvc?view=rev&rev=560004
Log:
Add basic command crapo

Modified:
    geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy

Modified: geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy?view=diff&rev=560004&r1=560003&r2=560004
==============================================================================
--- geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy
(original)
+++ geronimo/sandbox/server-gshell-launcher/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy
Thu Jul 26 14:45:33 2007
@@ -19,11 +19,44 @@
 
 package org.apache.geronimo.commands
 
+import org.apache.geronimo.gshell.command.CommandSupport
+import org.apache.geronimo.gshell.command.CommandException
+
+import org.apache.commons.cli.CommandLine
+
 /**
  * ???
  *
  * @version $Id$
  */
 class StartServerCommand
+    extends CommandSupport
 {
+    StartServerCommand() {
+        super('start-server')
+    }
+
+    protected String getUsage() {
+        return super.usage // TODO: 
+    }
+
+    protected boolean processCommandLine(CommandLine line) throws CommandException {
+        assert line
+
+        //
+        // TODO:
+        //
+        
+        return true
+    }
+
+    protected Object doExecute(Object[] args) throws Exception {
+        assert args
+        
+        //
+        // TODO:
+        //
+        
+        return Command.SUCCESS
+    }
 }



Mime
View raw message