Browse Source

Translate task logs a debug message specifying the number of files that it processed. Bugzilla Report 13938.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275415 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 22 years ago
parent
commit
6234759dd3
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      WHATSNEW
  2. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java

+ 2
- 0
WHATSNEW View File

@@ -11,6 +11,8 @@ Fixed bugs:

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
======================================


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java View File

@@ -531,6 +531,7 @@ public class Translate extends MatchingTask {
* 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 @@ public class Translate extends MatchingTask {
if (out != null) {
out.close();
}
++filesProcessed;
} else {
log("Skipping " + srcFiles[j]
+ " as destination file is up to date",
@@ -656,5 +658,6 @@ public class Translate extends MatchingTask {
}
}
}
log("Translation performed on " + filesProcessed + " file(s).", Project.MSG_DEBUG);
}
}

Loading…
Cancel
Save