简体   繁体   English

Apache Camel-FTP组件-需要使用绝对路径

[英]Apache Camel - ftp component - need to use absolute path

I am trying to upgrade a product that uses an older camel version (2.15.1). 我正在尝试升级使用旧骆驼版本(2.15.1)的产品。 I am trying to upgrade the camel version to 2.17.5 我正在尝试将骆驼版本升级到2.17.5

In the code base, camel ftp component is used with absolute paths. 在代码库中,骆驼ftp组件与绝对路径一起使用。 After upgrade we saw that, files could not be consumed due to the following error: 升级后,我们看到由于以下错误而无法使用文件:

SftpComponent doesn't support absolute paths, "xxx" will be converted to "yyy". SftpComponent不支持绝对路径,“ xxx”将转换为“ yyy”。 After Camel 2.16, absolute paths will be invalid. 在Camel 2.16之后,绝对路径将无效。

I can see that absolute paths are not supported starting with 2.16: 我可以看到从2.16开始不支持绝对路径:

http://camel.apache.org/ftp.html http://camel.apache.org/ftp.html

For our case, it will be very costly to change the existing code base. 对于我们的情况,更改现有代码库将非常昂贵。

My question : Is there any possibility to force camel ftp 2.17.5 to support absolute paths as before in 2.15.1 (via config or other setting)? 我的问题:是否有可能像2.15.1中一样通过配置或其他设置来强制骆驼ftp 2.17.5支持绝对路径?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM