@@ -86,10 +86,14 @@ public class RenameUtil extends ContextAwareBase { File fromFile = new File(from); if (!fromFile.delete()) { addWarn("Could not delete " + from); + addWarn("Attempting to truncate."); + fos = new FileOutputStream(from); + fos.getChannel().truncate(0); + fos.close(); } } catch (IOException ioe) { addError("Failed to rename file by copying", ioe); throw new RolloverFailure("Failed to rename file by copying"); }