Hi Neil,

The FileInputStream() usage is correct too. I simply focus on another way to do it using blueprint :)

Regards
JB

Neil Bartlett wrote:
Sorry if I am missing something obvious, but what is wrong with "new
FileInputStream(...)" ?

Neil

On Mon, Feb 1, 2010 at 9:12 AM, Asier Aranbarri Beldarrain
<[email protected]> wrote:
Hi everyone:

I need to load a config.properties file from outside an osgi bundle and I'm
having real issues getting it. The .properties MUST be outisde the
classpath, since it must be modified by the user( put user and password from
mysql) and then read from the bundle (bundle.jar).

I have no problem loading from outside with an static path or a dynamic path
INSIDE eclipse. But when I try to load it dinamycally from the
eclipse-independent osgi, I cannot read the file.

Is there any way to load a file outside the classpath with a .jar? I repeat
that the .properties MUST be outside the classpath. Static paths don't do
the work for me since I am forcing the user to put in an specific location
and that's not acceptable(also, he's on linux and I on windows, so the path
C:\ ... doesnt work).

Thank you very much,

Asier

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to