[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Dltk-dev] off topic: osgi bundle question
|
hello all -
i turned a 3rd party jar i am working on into an osgi bundle instead of including it as a library inside of my plugin.
the problem i'm having is i can't load a properties file using this call:
ResourceBundle.getBundle("resources.errorsAndWarnings");
when the jar is loaded in as a bundle.
this is what my manifest looks like:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: perl-utils
Bundle-SymbolicName: org.scriptkitty.perl-utils
Bundle-Vendor:
scriptkitty.orgBundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: resources;version="1.0.0",
org.scriptkitty.perl.compiler;version="1.0.0";uses:="org.scriptkitty.perl.util",
org.scriptkitty.perl.exec;version="1.0.0",
org.scriptkitty.perl.lang;version="1.0.0",
org.scriptkitty.perl.util;version="1.0.0"
Bundle-ActivationPolicy: lazy
Import-Package: org.scriptkitty.perl.compiler;version="1.0.0",
org.scriptkitty.perl.exec;version="1.0.0",
org.scriptkitty.perl.lang;version="1.0.0",
org.scriptkitty.perl.util;version="1.0.0",
resources;version="1.0.0"
the 'resource' are imported/exported by the manifest, so i'm not sure what i'm doing incorrectly here.
i figured out that if i stick the properties file in the same directory as the java code, i get the expected behavior.
is there any way to make this work w/ the separate resources directory or am i just better off sticking the properties file in the same location as the class file that loads it?
thanks!!
--
-jae