necessary and last before release polishing in FTP module
This commit is contained in:
@@ -66,7 +66,10 @@ class FtpSendingMessageHandlerFactoryBean extends AbstractFactoryBean<FtpSending
|
||||
QueuedFtpClientPool queuedFtpClientPool = new QueuedFtpClientPool(15, this.clientFactory);
|
||||
FtpSendingMessageHandler ftpSendingMessageHandler = new FtpSendingMessageHandler(
|
||||
queuedFtpClientPool);
|
||||
ftpSendingMessageHandler.setFileNameGenerator(this.fileNameGenerator);
|
||||
if (this.fileNameGenerator != null){
|
||||
ftpSendingMessageHandler.setFileNameGenerator(this.fileNameGenerator);
|
||||
}
|
||||
|
||||
if (this.charset != null) {
|
||||
ftpSendingMessageHandler.setCharset(this.charset);
|
||||
}
|
||||
|
||||
@@ -93,9 +93,6 @@ public class FtpSendingMessageHandler extends AbstractMessageHandler{
|
||||
}
|
||||
|
||||
private File handleFileMessage(File sourceFile, File tempFile, File resultFile) throws IOException {
|
||||
if (sourceFile.renameTo(resultFile)) {
|
||||
return resultFile;
|
||||
}
|
||||
FileCopyUtils.copy(sourceFile, tempFile);
|
||||
tempFile.renameTo(resultFile);
|
||||
return resultFile;
|
||||
|
||||
Reference in New Issue
Block a user