scheu       2002/06/05 12:28:59

  Modified:    java/src/org/apache/axis/utils axisNLS.properties
               java/src/org/apache/axis/wsdl Java2WSDL.java
               java/src/org/apache/axis/wsdl/gen WSDL2.java
  Log:
  Improved command line messages for WSDL2Java and Java2WSDL per IBM user's experience.
  Fixed minor bug in Java2WSDL help message processing that was causing the options to
  be duplicated in the help message.
  
  Revision  Changes    Path
  1.6       +4 -1      xml-axis/java/src/org/apache/axis/utils/axisNLS.properties
  
  Index: axisNLS.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/axisNLS.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- axisNLS.properties        4 Jun 2002 01:44:01 -0000       1.5
  +++ axisNLS.properties        5 Jun 2002 19:28:58 -0000       1.6
  @@ -855,4 +855,7 @@
   j2woptBadStyle00=The value of --style must be DOCUMENT or LITERAL.
   
   noClassForService00=Could not find class for the service named: {0}\nHint: you may 
need to copy your class files/tree into the right location (which depends on the 
servlet system you are using).
  -
  +j2wDuplicateClass00=The <class-of-portType> has already been specified as, {0}.  It 
cannot be specified again as {1}.
  +j2wMissingClass00=The <class-of-portType> was not specified.
  +w2jDuplicateWSDLURI00=The wsdl URI has already been specified as, {0}.  It cannot 
be specified again as {1}.
  +w2jMissingWSDLURI00=The wsdl URI was not specified.
  
  
  
  1.19      +4 -1      xml-axis/java/src/org/apache/axis/wsdl/Java2WSDL.java
  
  Index: Java2WSDL.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Java2WSDL.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Java2WSDL.java    31 May 2002 20:29:51 -0000      1.18
  +++ Java2WSDL.java    5 Jun 2002 19:28:59 -0000       1.19
  @@ -204,7 +204,6 @@
        */
       protected Java2WSDL() {
           emitter = createEmitter();
  -        addOptions(options);
       } // ctor
   
   
  @@ -241,6 +240,9 @@
           switch (option.getId()) {
           case CLOption.TEXT_ARGUMENT:
               if (className != null) {
  +                System.out.println(JavaUtils.getMessage("j2wDuplicateClass00", 
  +                                                        className, 
  +                                                        option.getArgument()));
                   printUsage();
               }
               className = option.getArgument();
  @@ -378,6 +380,7 @@
       protected void validateOptions() {
           // Can't proceed without a class name
           if ((className == null)) {
  +            System.out.println(JavaUtils.getMessage("j2wMissingClass00"));
               printUsage();
           }
           
  
  
  
  1.8       +4 -0      xml-axis/java/src/org/apache/axis/wsdl/gen/WSDL2.java
  
  Index: WSDL2.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/gen/WSDL2.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WSDL2.java        3 Jun 2002 17:57:01 -0000       1.7
  +++ WSDL2.java        5 Jun 2002 19:28:59 -0000       1.8
  @@ -147,6 +147,9 @@
           switch (option.getId()) {
               case CLOption.TEXT_ARGUMENT:
                   if (wsdlURI != null) {
  +                    
System.out.println(JavaUtils.getMessage("w2jDuplicateWSDLURI00", 
  +                                                            wsdlURI, 
  +                                                            option.getArgument()));
                       printUsage();
                   }
                   wsdlURI = option.getArgument();
  @@ -186,6 +189,7 @@
        **/
       protected void validateOptions() {
           if (wsdlURI == null) {
  +            System.out.println(JavaUtils.getMessage("w2jMissingWSDLURI00"));
               printUsage();
           }
   
  
  
  


Reply via email to