ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r905217 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
Date Mon, 01 Feb 2010 09:11:56 GMT
Author: bodewig
Date: Mon Feb  1 09:11:56 2010
New Revision: 905217

URL: http://svn.apache.org/viewvc?rev=905217&view=rev
Log:
flush will be called in any case, make this more explicit

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java?rev=905217&r1=905216&r2=905217&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java Mon
Feb  1 09:11:56 2010
@@ -448,7 +448,6 @@
                     }
                 } while (c >= 0);
 
-                bw.flush();
             } else {
                 String buf = FileUtils.safeReadFully(br);
 
@@ -459,9 +458,10 @@
                 }
 
                 bw.write(res);
-                bw.flush();
             }
 
+            bw.flush();
+
             r.close();
             r = null;
             w.close();



Mime
View raw message