ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r594008 - /ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
Date Mon, 12 Nov 2007 02:34:50 GMT
Author: kevj
Date: Sun Nov 11 18:34:48 2007
New Revision: 594008

URL: http://svn.apache.org/viewvc?rev=594008&view=rev
Log:
-use createTempFileName so that bootstrap build doesn't clobber .bat/.sh files

Modified:
    ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java

Modified: ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java?rev=594008&r1=594007&r2=594008&view=diff
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java (original)
+++ ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java Sun
Nov 11 18:34:48 2007
@@ -341,8 +341,7 @@
             fcv = new Vector(1);
             fcv.add(fc);
         }
-        File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null);
-        tmpFile.deleteOnExit();
+        File tmpFile = FILE_UTILS.createTempFileName("fixcrlf", "", null, true);
         try {
             FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, false, false,
                 encoding, outputEncoding == null ? encoding : outputEncoding,



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


Mime
View raw message