OSGI Felix not exporting the src/main/resource files -


as know defaul osgi export-package export package src/main/java folder, need other file form src/main/resource exported use other projects. below example of my

projecta (packaging type jar)

src/main/java                 x.y.z.someclass.java src/main/resource                  x.y.z.config.someconfigfile.xml   pom.xml contains      <export-package>         x.y.z.*,         x.y.z.config.*,         *     </export-package> 

projectb (packaging type bundle)

src/main/java                 a.b.c.anotherclass.java src/main/resource                  a.b.c.config.anotherconfigfile.xml   pom.xml contains      <import-package>         x.y.z.*,         x.y.z.config.*,         *     </import-package> 

here requirement use someconfigfile.xml of projecta anotherconfigfile.xml of projectb filenotfoundexception above scenario. please me use src/main/resource classpath files osgi project. how can achieve above defined scenario.

you should use include-resource instead of import-package. more info on header here (in 'headers' section): http://www.aqute.biz/bnd/format.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -