Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 19959 invoked from network); 4 May 2006 08:29:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 08:29:12 -0000 Received: (qmail 87921 invoked by uid 500); 4 May 2006 08:29:12 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 87883 invoked by uid 500); 4 May 2006 08:29:11 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 87872 invoked by uid 99); 4 May 2006 08:29:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 01:29:11 -0700 X-ASF-Spam-Status: No, hits=-8.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 May 2006 01:29:11 -0700 Received: (qmail 19784 invoked by uid 65534); 4 May 2006 08:28:50 -0000 Message-ID: <20060504082850.19779.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: scm@geronimo.apache.org From: jdillon@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 {