You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2006/07/01 01:08:01 UTC

svn commit: r418414 - in /geronimo/sandbox/gshell/trunk/gshell-core/src/main: grammar/ java/org/apache/geronimo/gshell/commandline/ java/org/apache/geronimo/gshell/commandline/parser/

Author: jdillon
Date: Fri Jun 30 16:08:00 2006
New Revision: 418414

URL: http://svn.apache.org/viewvc?rev=418414&view=rev
Log:
Prepare for major refactoring of parser

Added:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/parser/CommandLineParserSupport.java
Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/CommandLineParser.jjt
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/CommandLineBuilder.java

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/CommandLineParser.jjt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/CommandLineParser.jjt?rev=418414&r1=418413&r2=418414&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/CommandLineParser.jjt (original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/grammar/CommandLineParser.jjt Fri Jun 30 16:08:00 2006
@@ -33,6 +33,9 @@
 import java.io.Reader;
 import java.io.StringReader;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 import org.apache.commons.lang.NullArgumentException;
 
 /**
@@ -43,6 +46,8 @@
 public class CommandLineParser
     extends CommandLineParserSupport
 {
+    private static final Log log = LogFactory.getLog(CommandLineParser.class);
+
     public CommandLineParser() {
         this(new StringReader(""));
     }
@@ -50,6 +55,10 @@
     public ASTCommandLine parse(final Reader reader) throws ParseException {
         if (reader == null) {
             throw new NullArgumentException("reader");
+        }
+
+        if (log.isDebugEnabled()) {
+            log.debug("Parsing from reader: " + reader);
         }
 
         this.ReInit(reader);

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/CommandLineBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/CommandLineBuilder.java?rev=418414&r1=418413&r2=418414&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/CommandLineBuilder.java (original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/CommandLineBuilder.java Fri Jun 30 16:08:00 2006
@@ -23,6 +23,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+
 import org.apache.commons.lang.NullArgumentException;
 
 import java.io.Reader;

Added: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/parser/CommandLineParserSupport.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/parser/CommandLineParserSupport.java?rev=418414&view=auto
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/parser/CommandLineParserSupport.java (added)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/commandline/parser/CommandLineParserSupport.java Fri Jun 30 16:08:00 2006
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.gshell.commandline.parser;
+
+/**
+ * Support for {@link CommandLineParser}.
+ *
+ * @version $Id$
+ */
+public abstract class CommandLineParserSupport
+{
+    //
+    // TODO: ???
+    //
+}