我为我的CQ5应用程序创建了一个简单的OSGi包。我想从属性文件(常规键值文件)中读取某些属性在osgi包中使用属性文件
我试图将该文件放在捆绑包的/ resources文件夹中,也在外面(在/ etc/designs /中),但文件总是加载失败,并如下抛出异常:
java.io.FileNotFoundException: \path\to\the\file\filename.properties
(The system cannot find the path specified)
我想保持管束外的文件,以便它可以在不改变束进行编辑
你保持在JCR库或文件系统的属性文件? – Chetan