Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-1721

In FileWritingMessageHandler file.renameTo(destFile) doesn't work on Windows as expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.4
    • Component/s: Adapters
    • Labels:
      None
    • Environment:
      Windows Vista, JDK6

      Description

      I developed a fileNameGenerator which returns always the same filename. So, you always update the same file with the FileWritingMessageHandler.
      This doesn't work that nice on Windows OS. I expect to rename the filename.file.writing file to filename.file but this doesn't work. Or it works very random.
      After some research I concluded that the renameTo method of the java.util.File class isn't allowed by windows to rename to an existing filename.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oleg.zhurakousky@springsource.com Oleg Zhurakousky
                Reporter:
                minze Minze Tolsma
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: