Summary: | FixCRLF is not creating unique file names | ||
---|---|---|---|
Product: | Ant | Reporter: | Jan Stolze <jan.stolze> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick |
Priority: | P2 | Keywords: | PatchAvailable |
Version: | 1.7.1 | ||
Target Milestone: | 1.9.3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Patched version |
Description
Jan Stolze
2013-01-09 12:22:31 UTC
Another change has to be made as well in the same method namely the following: FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, true, false, encoding, outputEncoding == null ? encoding : outputEncoding, getProject()); here the first boolean argument has changed from false to true in order to override the temporary file with the contents of the src file. By the way actual patches (diff -u format) are preferred to verbal descriptions of what you would change. Index: FixCRLF.java =================================================================== --- FixCRLF.java (revision 1431908) +++ FixCRLF.java (working copy) @@ -352,9 +352,9 @@ fcv = new Vector<FilterChain>(1); fcv.add(fc); } - File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null, true, false); + File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null, true, true); try { - FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, false, false, + FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, true, false, encoding, outputEncoding == null ? encoding : outputEncoding, getProject()); Created attachment 29845 [details]
Patched version
patch applied with svn revision 1525078, thanks |