Skip to main content



      Home
Home » Eclipse Projects » Equinox » Reading from FileSystem
Reading from FileSystem [message #121231] Sun, 16 November 2008 08:27 Go to next message
Eclipse UserFriend
How do I register an external location of file in Equinox registry using
org.eclipse.equinox.http.registry.resources
The following registers the location within a bundle
<extension point="org.eclipse.equinox.http.registry.resources">
<resource
alias="/img"
base-name="/resources/icons"/>
</extension>

But I need to reference external files. How can it be accomplished.
My files are in "D:\home\abcd\customer\data\images"

Thanks,
Walter.
Re: Reading from FileSystem [message #121240 is a reply to message #121231] Sun, 16 November 2008 21:37 Go to previous messageGo to next message
Eclipse UserFriend
There is no built in support for reading external resources however one of
things you can do is have your resource referene an httpcontextid. The next
step is to define an httpcontext extension and write your own custom
HttpContext class that does the lookup you want.

HTH
-Simon
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:gfp746$6u6$1@build.eclipse.org...
> How do I register an external location of file in Equinox registry using
> org.eclipse.equinox.http.registry.resources
> The following registers the location within a bundle
> <extension point="org.eclipse.equinox.http.registry.resources">
> <resource
> alias="/img"
> base-name="/resources/icons"/>
> </extension>
>
> But I need to reference external files. How can it be accomplished.
> My files are in "D:\home\abcd\customer\data\images"
>
> Thanks,
> Walter.
>
>
Re: Reading from FileSystem [message #121397 is a reply to message #121240] Fri, 21 November 2008 09:23 Go to previous message
Eclipse UserFriend
Thanks. it works.

"Simon Kaegi" <simon_kaegi@ca.ibm.com> wrote in message
news:gfqld9$usi$1@build.eclipse.org...
> There is no built in support for reading external resources however one of
> things you can do is have your resource referene an httpcontextid. The
> next step is to define an httpcontext extension and write your own custom
> HttpContext class that does the lookup you want.
>
> HTH
> -Simon
> "Walter Prabhakar" <kwchess@gmail.com> wrote in message
> news:gfp746$6u6$1@build.eclipse.org...
>> How do I register an external location of file in Equinox registry using
>> org.eclipse.equinox.http.registry.resources
>> The following registers the location within a bundle
>> <extension point="org.eclipse.equinox.http.registry.resources">
>> <resource
>> alias="/img"
>> base-name="/resources/icons"/>
>> </extension>
>>
>> But I need to reference external files. How can it be accomplished.
>> My files are in "D:\home\abcd\customer\data\images"
>>
>> Thanks,
>> Walter.
>>
>>
>
>
Previous Topic:Where to get equinox 3.4.1
Next Topic:creating and using references
Goto Forum:
  


Current Time: Wed May 28 19:49:34 EDT 2025

Powered by FUDForum. Page generated in 0.03421 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top