2009/3/18 Richard S. Hall <he...@ungoverned.org>

> It doesn't under the Mac...let me check on Linux...
>

perhaps also check that the framework storage area is writable,
this is another common difference between Windows and Linux
especially when running Felix from a system area

read-only storage would log a framework error and return null
(this is based on a quick read of the relevant framework code)


> -> richard
>
>
> On 3/17/09 2:44 PM, BJBg wrote:
>
>> On Linux,
>>   context.getDataFile("")
>> returns null as well.
>>
>> So what is an empty string ?
>>
>> -- Bruno
>>
>>
>> Richard S. Hall a écrit :
>>
>>> I should also add, if you want to get the root of your bundle's private
>>> area, you should use an empty string per the spec.
>>>
>>> -> richard
>>>
>>> On 3/17/09 2:34 PM, Richard S. Hall wrote:
>>>
>>>> On 3/17/09 2:33 PM, Richard S. Hall wrote:
>>>>
>>>>> 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.
>>>>>
>>>>
>>>> That should say, "...so "/" is relative under Windows."
>>>>
>>>> -> richard
>>>>
>>>>
>>>>> -> 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: users-unsubscr...@felix.apache.org
>>>>>> For additional commands, e-mail: users-h...@felix.apache.org
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>>>>> For additional commands, e-mail: users-h...@felix.apache.org
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>>> For additional commands, e-mail: users-h...@felix.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>> For additional commands, e-mail: users-h...@felix.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
Cheers, Stuart

Reply via email to