Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Reading from FileSystem
Reading from FileSystem [message #121231] Sun, 16 November 2008 13:27 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
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] Mon, 17 November 2008 02:37 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
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 14:23 Go to previous message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
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: Tue Mar 19 09:23:42 GMT 2024

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

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

Back to the top