ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs FixCRLF.java
Date Thu, 19 Jun 2003 22:00:35 GMT
antoine     2003/06/19 15:00:35

  Modified:    src/main/org/apache/tools/ant/taskdefs FixCRLF.java
  Log:
  Create the temporary file for output of FixCrLf in the default directory
  of FileUtils#createTempFile
  This default directory is presently the current directory where ant is running.
  I think it should be changed to the java.io.tmpdir
  PR: 20870
  Submitted by: Antoine Levy-Lambert
  
  Revision  Changes    Path
  1.46      +2 -2      ant/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
  
  Index: FixCRLF.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- FixCRLF.java	4 Apr 2003 13:51:11 -0000	1.45
  +++ FixCRLF.java	19 Jun 2003 22:00:35 -0000	1.46
  @@ -403,7 +403,7 @@
           try {
               // Set up the output Writer
               try {
  -                tmpFile = fileUtils.createTempFile("fixcrlf", "", destD);
  +                tmpFile = fileUtils.createTempFile("fixcrlf", "", null);
                   Writer writer = (encoding == null) ? new FileWriter(tmpFile)
                       : new OutputStreamWriter(new FileOutputStream(tmpFile),
                                                encoding);
  
  
  

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


Mime
View raw message