Browse Source

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


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274678 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
503e2b978e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/FixCRLF.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/FixCRLF.java View File

@@ -403,7 +403,7 @@ public class FixCRLF extends MatchingTask {
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);


Loading…
Cancel
Save