ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Get.java
Date Wed, 14 May 2003 13:37:21 GMT
bodewig     2003/05/14 06:37:21

  Modified:    src/main/org/apache/tools/ant/taskdefs Get.java
  Log:
  Provide more feedback while <get>ing in verbose mode
  
  Revision  Changes    Path
  1.33      +5 -0      ant/src/main/org/apache/tools/ant/taskdefs/Get.java
  
  Index: Get.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Get.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Get.java	10 Feb 2003 14:13:34 -0000	1.32
  +++ Get.java	14 May 2003 13:37:21 -0000	1.33
  @@ -218,11 +218,16 @@
               try {
                   byte[] buffer = new byte[100 * 1024];
                   int length;
  +                int dots = 0;
   
                   while ((length = is.read(buffer)) >= 0) {
                       fos.write(buffer, 0, length);
                       if (verbose) {
                           System.out.print(".");
  +                        if (dots++ > 50) {
  +                            System.out.flush();
  +                            dots = 0;
  +                        }
                       }
                   }
                   if (verbose) {
  
  
  

Mime
View raw message