You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/05/06 23:53:53 UTC
svn commit: r653937 -
/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDL.java
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