【发布时间】:2015-02-10 07:56:30
【问题描述】:
如果 CRX 中有多个同名的 sling 配置节点,并且如果我在我的 OSGi 服务中调用 configAdmin.getConfiguration,它会选择哪个配置值?我在 config.qa、config.local、config 等应用程序下有多个配置目录,它们具有相同的配置节点。如何让 CQ5 选择 config.qa 而不是 config?我确实在 sling.properties 文件中添加了属性 sling.run.mode=publish,qa 。它仍在获取 config 文件夹而不是 config.qa 下定义的属性。为什么不像 http://docs.adobe.com/docs/en/cq/5-4/deploying/configuring_osgi.html 的文档那样从 config.qa 文件夹中挑选道具?
【问题讨论】: