FixCRLF is not creating unique file names, which gives complication when building several projects at the same time, like we do using Hudson. Proposed fix in FixCRLF file should be: The private void processFile(String file) throws BuildException method should use the following call on FILE_UTILS.createTempFile: File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null, true, true); so last argument changed into true here, which causes Java to create a unique temporary file.
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