axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r653937 - /webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java
Date Tue, 06 May 2008 21:53:53 GMT
Author: dims
Date: Tue May  6 14:53:52 2008
New Revision: 653937

URL: http://svn.apache.org/viewvc?rev=653937&view=rev
Log:
don't catch the exception, let the user see the issue.

Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java?rev=653937&r1=653936&r2=653937&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java
Tue May  6 14:53:52 2008
@@ -23,16 +23,13 @@
 import org.apache.ws.java2wsdl.utils.Java2WSDLOptionsValidator;
 
 public class Java2WSDL {
-    public static void main(String[] args) {
+    public static void main(String[] args) throws Exception {
         Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
                 args);
         //  validate the arguments
         validateCommandLineOptions(commandLineOptionParser);
-        try {
-            new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions()).generate();
-        } catch (Exception e) {
-            System.out.println("An error occured while generating code" + e.getMessage());
-        }
+        Java2WSDLCodegenEngine engine = new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions());
+        engine.generate();
     }
 
     public static void printUsage() {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message