The spec says the path should be relative. Felix returns null for non-relative paths.

On Windows, you probably get different behavior because it looks for File.separatorChar, which is "\\" on Windows, not "/", so "/" is non-relative under Windows.

-> richard

On 3/17/09 2:17 PM, BJBg wrote:
Dear all,

Have you experienced the OSGi command
       context.getDataFile("/")
on Linux with Felix ?

The result seems quite different if you are on Windows or Linux.
- On Windows, the beahaviour is OK.
- On Linux, the method returns "null".

Any idea ?

B.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to