INT-3427: Add JsonNodeToStringConverter
JIRA: https://jira.spring.io/browse/INT-3427 INT-3427: Workaround for String -> File converter INT-3427: PR comments
This commit is contained in:
committed by
Gary Russell
parent
f0ab3b03bd
commit
85866a2ea8
@@ -798,7 +798,10 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
|
||||
private File generateLocalDirectory(Message<?> message, String remoteDirectory) {
|
||||
EvaluationContext evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory());
|
||||
evaluationContext.setVariable("remoteDirectory", remoteDirectory);
|
||||
File localDir = this.localDirectoryExpression.getValue(evaluationContext, message, File.class);
|
||||
//TODO see org.springframework.integration.context.CustomConversionServiceFactoryBean
|
||||
// File localDir = this.localDirectoryExpression.getValue(evaluationContext, message, File.class);
|
||||
String localDirPath = this.localDirectoryExpression.getValue(evaluationContext, message, String.class);
|
||||
File localDir = new File(localDirPath);
|
||||
if (!localDir.exists()) {
|
||||
Assert.isTrue(localDir.mkdirs(), "Failed to make local directory: " + localDir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user