ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/vss MSVSS.java
Date Tue, 15 Apr 2003 15:12:42 GMT
jesse       2003/04/15 08:12:42

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/vss
                        MSVSS.java
  Log:
  Make it work with JDK 1.2
  
  Revision  Changes    Path
  1.30      +3 -3      ant/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
  
  Index: MSVSS.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- MSVSS.java	15 Apr 2003 04:26:51 -0000	1.29
  +++ MSVSS.java	15 Apr 2003 15:12:42 -0000	1.30
  @@ -720,10 +720,10 @@
        */
       private String formatCommandLine(Commandline cmd) {
           StringBuffer sBuff = new StringBuffer(cmd.toString());
  -        int indexUser = sBuff.indexOf(FLAG_LOGIN);
  +        int indexUser = sBuff.substring(0).indexOf(FLAG_LOGIN);
           if (indexUser > 0) {
  -            int indexPass = sBuff.indexOf(",", indexUser);
  -            int indexAfterPass = sBuff.indexOf(" ", indexPass);
  +            int indexPass = sBuff.substring(0).indexOf(",", indexUser);
  +            int indexAfterPass = sBuff.substring(0).indexOf(" ", indexPass);
   
               for (int i = indexPass + 1; i < indexAfterPass; i++) {
                   sBuff.setCharAt(i, '*');
  
  
  

Mime
View raw message