geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r399611 - /geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java
Date Thu, 04 May 2006 08:28:49 GMT
Author: jdillon
Date: Thu May  4 01:28:47 2006
New Revision: 399611

URL: http://svn.apache.org/viewcvs?rev=399611&view=rev
Log:
 Drop CommandLine* bits for the moment, need to ponder them a tad more

Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java?rev=399611&r1=399610&r2=399611&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/GShellImpl.java
Thu May  4 01:28:47 2006
@@ -23,8 +23,6 @@
 import org.apache.geronimo.gshell.command.CommandContext;
 import org.apache.geronimo.gshell.command.Variables;
 import org.apache.geronimo.gshell.command.VariablesMap;
-import org.apache.geronimo.gshell.commandline.CommandLine;
-import org.apache.geronimo.gshell.commandline.CommandLineParser;
 import org.apache.geronimo.gshell.console.IO;
 import org.springframework.beans.BeansException;
 import org.springframework.context.ApplicationContext;
@@ -42,7 +40,6 @@
 
     private IO io;
     private ApplicationContext ctx;
-    private CommandLineParser parser;
     
     public void setIO(final IO io) {
         assert io != null;
@@ -50,24 +47,10 @@
         this.io = io;
     }
     
-    public void setCommmandLineParser(final CommandLineParser parser) {
-        assert parser != null;
-        
-        this.parser = parser;
-    }
-    
-    private CommandLineParser getCommandLineParser() {
-        if (parser == null) {
-            throw new IllegalArgumentException("Command line parser not initalized");
-        }
-        return parser;
-    }
-    
     public int execute(final String commandline) throws Exception {
         log.info("Executing (String): " + commandline);
         
-        CommandLine cl = getCommandLineParser().parse(commandline);
-        return cl.execute();
+        throw new Error("Not implemented, pending some parser work");
     }
     
     public int execute(final String commandName, String[] args) throws Exception {



Mime
View raw message