ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Replace.java
Date Thu, 20 Sep 2001 11:13:50 GMT
conor       01/09/20 04:13:50

  Modified:    src/main/org/apache/tools/ant/taskdefs Replace.java
  Log:
  Fix up cut and paste error - oops - Thanks Sam
  
  Revision  Changes    Path
  1.17      +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Replace.java
  
  Index: Replace.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Replace.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -w -u -r1.16 -r1.17
  --- Replace.java	2001/09/19 12:10:25	1.16
  +++ Replace.java	2001/09/20 11:13:50	1.17
  @@ -296,8 +296,8 @@
           try {
               Reader fileReader = encoding == null ? new FileReader(src)
                                                    : new InputStreamReader(new FileInputStream(src),
encoding);
  -            Writer fileWriter = encoding == null ? new FileWriter(src)
  -                                                 : new OutputStreamWriter(new FileOutputStream(src),
encoding);
  +            Writer fileWriter = encoding == null ? new FileWriter(temp)
  +                                                 : new OutputStreamWriter(new FileOutputStream(temp),
encoding);
               
               BufferedReader br = new BufferedReader(fileReader);
               BufferedWriter bw = new BufferedWriter(fileWriter);
  
  
  

Mime
View raw message