ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n Translate.java
Date Fri, 03 Oct 2003 22:37:32 GMT
umagesh     2003/10/03 15:37:32

  Modified:    .        WHATSNEW
               src/main/org/apache/tools/ant/taskdefs/optional/i18n
                        Translate.java
  Log:
  Translate task logs a debug message specifying the number of files that it processed.  Bugzilla
Report 13938.
  
  Revision  Changes    Path
  1.507     +2 -0      ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.506
  retrieving revision 1.507
  diff -u -r1.506 -r1.507
  --- WHATSNEW	3 Oct 2003 22:21:49 -0000	1.506
  +++ WHATSNEW	3 Oct 2003 22:37:32 -0000	1.507
  @@ -11,6 +11,8 @@
   
   Other changes:
   --------------
  +* Translate task logs a debug message specifying the number of files
  +  that it processed.  Bugzilla Report 13938.
   
   Changes from Ant 1.5.4 to Ant 1.6Beta1
   ======================================
  
  
  
  1.33      +3 -0      ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
  
  Index: Translate.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Translate.java	3 Oct 2003 22:21:49 -0000	1.32
  +++ Translate.java	3 Oct 2003 22:37:32 -0000	1.33
  @@ -531,6 +531,7 @@
        * newer than the destination file.
        */
       private void translate() throws BuildException {
  +        int filesProcessed = 0;
           for (int i = 0; i < filesets.size(); i++) {
               FileSet fs = (FileSet) filesets.elementAt(i);
               DirectoryScanner ds = fs.getDirectoryScanner(getProject());
  @@ -646,6 +647,7 @@
                           if (out != null) {
                               out.close();
                           }
  +                        ++filesProcessed;
                       } else {
                           log("Skipping " + srcFiles[j]
                               + " as destination file is up to date",
  @@ -656,5 +658,6 @@
                   }
               }
           }
  +        log("Translation performed on " + filesProcessed + " file(s).", Project.MSG_DEBUG);
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message