Browse Source

Last patch removed some significant logging in verbose mode.

re-added.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277182 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 21 years ago
parent
commit
46ff223e36
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/main/org/apache/tools/ant/taskdefs/Replace.java

+ 13
- 0
src/main/org/apache/tools/ant/taskdefs/Replace.java View File

@@ -594,6 +594,8 @@ public class Replace extends MatchingTask {

int repCountStart = replaceCount;

logFilterChain(src.getPath());

out.setInputBuffer(buildFilterChain(in.getOutputBuffer()));

while (in.readChunck()) {
@@ -681,6 +683,17 @@ public class Replace extends MatchingTask {
return buf;
}

/**
* Logs the chain of filters to operate on the file.
* @param filename
*/
private void logFilterChain(String filename) {
for (int i = 0; i < replacefilters.size(); i++) {
Replacefilter filter = (Replacefilter) replacefilters.elementAt(i);
log("Replacing in " + filename + ": " + filter.getToken()
+ " --> " + filter.getReplaceValue(), Project.MSG_VERBOSE);
}
}
/**
* Set the source file; required unless <code>dir</code> is set.
* @param file source file


Loading…
Cancel
Save