axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils Options.java
Date Sat, 10 Nov 2001 01:08:27 GMT
dug         01/11/09 17:08:27

  Modified:    java/src/org/apache/axis/utils Options.java
  Log:
  Fix problem where options were not getting picked up properly.
  
  Revision  Changes    Path
  1.23      +4 -1      xml-axis/java/src/org/apache/axis/utils/Options.java
  
  Index: Options.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/Options.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Options.java	2001/11/08 21:43:59	1.22
  +++ Options.java	2001/11/10 01:08:27	1.23
  @@ -188,6 +188,8 @@
               if ( arg.charAt(0) != '-' || arg.charAt(1) != optChar )
                   continue ;
               value = arg.substring(2);
  +            if ( loop+1 < usedArgs.size() )
  +                value = (String) usedArgs.elementAt(++loop);
           }
   
           for ( loop = 0 ; loop < args.length ; loop++ ) {
  @@ -224,7 +226,8 @@
           }
           if ( value != null ) {
               if ( usedArgs == null ) usedArgs = new Vector();
  -            usedArgs.add( "-" + optChar + value );
  +            usedArgs.add( "-" + optChar );
  +            if ( value.length() > 0 ) usedArgs.add( value );
           }
           return( value );
       }
  
  
  

Mime
View raw message