【问题标题】:Camel - how to change file permission on toD("file:~")Camel - 如何更改 toD("file:~") 的文件权限
【发布时间】:2021-09-03 14:38:08
【问题描述】:

我有如下路线

fromF("file:~~")
....
.toD("file:someotherlocation/")

该文件最初由 userA 所有,但更改为由 tomcat 用户所有(代码部署在外部 tomcat 上)。 有没有办法,要么保留所有者,要么为组提供适当的权限。

问候,

【问题讨论】:

    标签: apache-camel spring-camel


    【解决方案1】:

    不,不能更改所有者,但在较新的 Java 版本中,有一种方法可以更改文件的所有者。您可以在 Apache Camel 上创建 JIRA 票证来请求此类功能。

    但是,文件组件上有一个chmod 选项可以更改权限。有关详细信息,请参阅 Camel 文档。

    【讨论】:

      猜你喜欢
      • 2013-06-27
      • 1970-01-01
      • 2019-09-26
      • 2012-04-25
      • 2011-02-27
      • 2013-10-30
      • 2012-04-27
      • 2020-08-12
      • 2016-01-20
      相关资源
      最近更新 更多