You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2001/10/16 21:23:35 UTC

cvs commit: xml-axis/java/src/org/apache/axis/wsdl Wsdl2java.java

tomj        01/10/16 12:23:35

  Modified:    java/src/org/apache/axis/wsdl Wsdl2java.java
  Log:
  Exit with a non-zero status code on error.
  
  Revision  Changes    Path
  1.16      +5 -1      xml-axis/java/src/org/apache/axis/wsdl/Wsdl2java.java
  
  Index: Wsdl2java.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Wsdl2java.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Wsdl2java.java	2001/10/05 21:57:34	1.15
  +++ Wsdl2java.java	2001/10/16 19:23:35	1.16
  @@ -233,9 +233,13 @@
               }
   
               emitter.emit(wsdlURI);
  +            
  +            // everything is good
  +            System.exit(0);
           }
           catch (Throwable t) {
               t.printStackTrace();
  +            System.exit(1);
           }
   
       }
  @@ -251,7 +255,7 @@
           msg.append("Options: ").append(lSep);
           msg.append(CLUtil.describeOptions(Wsdl2java.options).toString());
           System.out.println(msg.toString());
  -        System.exit(0);
  +        System.exit(1);
       }
   
   }