bodewig     01/03/08 05:42:06

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  Workaround for a bug in Kaffee.
  
  Submitted by: Takashi Okamoto <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.33      +3 -1      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Zip.java  2001/03/08 11:03:40     1.32
  +++ Zip.java  2001/03/08 13:42:06     1.33
  @@ -465,7 +465,9 @@
           byte[] buffer = new byte[8 * 1024];
           int count = 0;
           do {
  -            zOut.write(buffer, 0, count);
  +            if (count != 0) {
  +                zOut.write(buffer, 0, count);
  +            }
               count = in.read(buffer, 0, buffer.length);
           } while (count != -1);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to