How to get the plugin installation directory? [message #168006] |
Fri, 09 July 2004 21:43  |
Eclipse User |
|
|
|
Originally posted by: dtwchiu.hotmail.com
Hi,
I am wonder if it is possible to find out the directory of where the
plugin code is installed. For example, My eclipse is installed at
d:\eclipse and my plugin is called org.xyz.foo_1.0.0. What is the best
way to get the directory "d:\eclipse\plugins\org.xyz.foo_1.0.0"
programmatically inside the plugin code?
I am thinking of putting in some template files inside my plugin, but
don't know how to get it back.
Thanks.
David.
|
|
|
|
|
|
|
Re: How to get the plugin installation directory? [message #170165 is a reply to message #168411] |
Tue, 27 July 2004 00:30  |
Eclipse User |
|
|
|
Originally posted by: anuj.andale.com
Just wondering. Couldnt you bundle them in your jar, and pick them as
resources?
-anuj
"Phillipus" <phil@dadabeatnik.com> wrote in message
news:cd0947$jk5$1@eclipse.org...
> Good call, Rich.
>
> Thanks,
>
> Phillipus
>
>
> "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> news:ccua3r$fhu$2@eclipse.org...
>> Please don't use asLocal(). That will cause a local physical copy of the
>> file to be made if the file is on another system. Just use
>> resolveURL(). If it is a local file, then it will become a file:
>> protocol. But it may resolve to a file:...jar!... type if the entire
>> plugin was a jar, or it may be http: if the plugin is on a different
> system.
>>
>>
>> --
>> Thanks, Rich Kulp
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04375 seconds