cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r442077 - in /incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec: ./ parser/
Date Mon, 11 Sep 2006 02:49:29 GMT
Author: ema
Date: Sun Sep 10 19:49:28 2006
New Revision: 442077

URL: http://svn.apache.org/viewvc?view=rev&rev=442077
Log:
Tone down debug message in tool spec parser

Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Argument.java
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/OptionGroup.java
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java
Sun Sep 10 19:49:28 2006
@@ -64,6 +64,7 @@
         if (toolspec != null) {
             parser = new CommandLineParser(toolspec);
             commandDoc = parser.parseArguments(args);
+           
         }
     }
 

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Argument.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Argument.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Argument.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Argument.java
Sun Sep 10 19:49:28 2006
@@ -41,8 +41,8 @@
     }
 
     public boolean accept(TokenInputStream args, Element result, ErrorVisitor errors) {
-        if (LOG.isLoggable(Level.INFO)) {
-            LOG.info("Accepting token stream for argument: " + this);
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Accepting token stream for argument: " + this);
         }
         int minOccurs;
         if ("unbounded".equals(element.getAttribute("minOccurs"))) {

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
Sun Sep 10 19:49:28 2006
@@ -74,13 +74,13 @@
 
     public CommandDocument parseArguments(String[] args) throws BadUsageException {
 
-        if (LOG.isLoggable(Level.INFO)) {
+        if (LOG.isLoggable(Level.FINE)) {
             StringBuffer debugMsg = new StringBuffer("Parsing arguments: ");
 
             for (int i = 0; i < args.length; i++) {
                 debugMsg.append(args[i]).append(" ");
             }
-            LOG.info(debugMsg.toString());
+            LOG.fine(debugMsg.toString());
         }
 
         if (toolspec == null) {
@@ -113,9 +113,9 @@
         Element usage = toolspec.getUsage();
 
         NodeList usageForms = toolspec.getUsageForms();
-        if (LOG.isLoggable(Level.INFO)) {
+        if (LOG.isLoggable(Level.FINE)) {
             LOG
-                .info("Found " + usageForms.getLength()
+                .fine("Found " + usageForms.getLength()
                       + " alternative forms of usage, will use default form");
         }
         if (usageForms.getLength() > 0) {

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java
Sun Sep 10 19:49:28 2006
@@ -173,8 +173,8 @@
     }
 
     public void add(CommandLineError err) {
-        if (LOG.isLoggable(Level.INFO)) {
-            LOG.info("Adding error: " + err);
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Adding error: " + err);
         }
         errors.add(err);
     }

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/OptionGroup.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/OptionGroup.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/OptionGroup.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/OptionGroup.java
Sun Sep 10 19:49:28 2006
@@ -48,8 +48,8 @@
     }
 
     public boolean accept(TokenInputStream args, Element result, ErrorVisitor errors) {
-        if (LOG.isLoggable(Level.INFO)) {
-            LOG.info("Accepting token stream for optionGroup: " + this + ", tokens are now
" + args
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Accepting token stream for optionGroup: " + this + ", tokens are now
" + args
                      + ", running through " + options.size() + " options");
         }
         // Give all the options the chance to exclusively consume the given
@@ -60,16 +60,16 @@
             Option option = (Option)it.next();
 
             if (option.accept(args, result, errors)) {
-                if (LOG.isLoggable(Level.INFO)) {
-                    LOG.info("Option " + option + " accepted the token");
+                if (LOG.isLoggable(Level.FINE)) {
+                    LOG.fine("Option " + option + " accepted the token");
                 }
                 accepted = true;
                 break;
             }
         }
         if (!accepted) {
-            if (LOG.isLoggable(Level.INFO)) {
-                LOG.info("No option accepted the token, returning");
+            if (LOG.isLoggable(Level.FINE)) {
+                LOG.fine("No option accepted the token, returning");
             }
             return false;
         }

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java?view=diff&rev=442077&r1=442076&r2=442077
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java
Sun Sep 10 19:49:28 2006
@@ -63,8 +63,8 @@
     }
 
     public String peek() {
-        if (LOG.isLoggable(Level.INFO)) {
-            LOG.info("Peeking token " + tokens[pos]);
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Peeking token " + tokens[pos]);
         }
         return tokens[pos];
     }



Mime
View raw message