cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r551430 - in /incubator/cxf/trunk/tools: javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/ wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/
Date Thu, 28 Jun 2007 02:57:33 GMT
Author: ema
Date: Wed Jun 27 19:57:32 2007
New Revision: 551430

URL: http://svn.apache.org/viewvc?view=rev&rev=551430
Log:
Made all tools print consistent error message

Modified:
    incubator/cxf/trunk/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/JavaToWSDL.java
    incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
    incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
    incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
    incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java

Modified: incubator/cxf/trunk/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/JavaToWSDL.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/JavaToWSDL.java?view=diff&rev=551430&r1=551429&r2=551430
==============================================================================
--- incubator/cxf/trunk/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/JavaToWSDL.java
(original)
+++ incubator/cxf/trunk/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/JavaToWSDL.java
Wed Jun 27 19:57:32 2007
@@ -41,7 +41,7 @@
         try {
             j2w.run();
         } catch (Exception ex) {
-            System.err.println("Error : " + ex.getMessage());
+            System.err.println("JavaToWSDL Error : " + ex.getMessage());
             System.err.println();
             if (j2w.isVerbose()) {
                 ex.printStackTrace();

Modified: incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java?view=diff&rev=551430&r1=551429&r2=551430
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
Wed Jun 27 19:57:32 2007
@@ -67,17 +67,17 @@
                 processor.process();
             }
         } catch (ToolException ex) {
-            System.err.println("Tools Error : " + ex.getMessage());
             if (ex.getCause() instanceof BadUsageException) {
                 printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());
             }
             System.err.println();
+            System.err.println("WSDLToService Error : " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }
         } catch (Exception ex) {
-            System.err.println("Unexpected Error : " + ex.getMessage());
             System.err.println();
+            System.err.println("WSDLToService Error : " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }

Modified: incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java?view=diff&rev=551430&r1=551429&r2=551430
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
Wed Jun 27 19:57:32 2007
@@ -69,17 +69,17 @@
                 processor.process();
             }
         } catch (ToolException ex) {
-            System.err.println("Error : " + ex.getMessage());
             if (ex.getCause() instanceof BadUsageException) {
                 printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());
             }
             System.err.println();
+            System.err.println("WSDLToSoap Error : " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }
         } catch (Exception ex) {
-            System.err.println("Error : " + ex.getMessage());
             System.err.println();
+            System.err.println("WSDLToSoap Error : " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }
@@ -119,8 +119,12 @@
                                WSDLToSoap.class.getResourceAsStream("wsdl2soap.xml"),
                                false,
                                pargs);
+        } catch (ToolException ex) {
+            System.err.println("WSDL2Soap Error : " + ex.getMessage());
+            System.err.println();
+            ex.printStackTrace();
         } catch (Exception ex) {
-            System.err.println("Error : " + ex.getMessage());
+            System.err.println("WSDL2Soap Error : " + ex.getMessage());
             System.err.println();
             ex.printStackTrace();
         }

Modified: incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java?view=diff&rev=551430&r1=551429&r2=551430
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
Wed Jun 27 19:57:32 2007
@@ -69,17 +69,17 @@
                 processor.process();
             }
         } catch (ToolException ex) {
-            System.err.println("Error : " + ex.getMessage());
             if (ex.getCause() instanceof BadUsageException) {
                 printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());
             }
             System.err.println();
+            System.err.println("WSDLToXML Eroor: " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }
         } catch (Exception ex) {
-            System.err.println("Error : " + ex.getMessage());
             System.err.println();
+            System.err.println("WSDLToXML Eroor: " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }

Modified: incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java?view=diff&rev=551430&r1=551429&r2=551430
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java
Wed Jun 27 19:57:32 2007
@@ -64,17 +64,17 @@
                 processor.process();
             }
         } catch (ToolException ex) {
-            System.err.println("Error : " + ex.getMessage());
             if (ex.getCause() instanceof BadUsageException) {
                 printUsageException(TOOL_NAME, (BadUsageException)ex.getCause());
             }
             System.err.println();
+            System.err.println("XSDToWSDL Eroor: " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }
         } catch (Exception ex) {
-            System.err.println("Error : " + ex.getMessage());
             System.err.println();
+            System.err.println("XSDToWSDL Eroor: " + ex.getMessage());
             if (isVerboseOn()) {
                 ex.printStackTrace();
             }



Mime
View raw message