Getting File path of the Bundle's location [message #330029] |
Sun, 13 July 2008 18:48 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: micha.bgl.gmx.de
Hi there,
I would like to have the concrete file path to the folder where all plugins
are stored in. I've tried bundle.getLocation(). But this gives me just the
name of the jar-file or the directory of my plugin. I would like to recieve
somthing like this : c:\programs\myApp\plugins\myplugin.jar
I hope you can help me with this.
regards,
micha
|
|
|
|
Re: Getting File path of the Bundle's location [message #330035 is a reply to message #330031] |
Sun, 13 July 2008 19:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: micha.bgl.gmx.de
"Walter Harley" <eclipse@cafewalter.com> schrieb im Newsbeitrag
news:g5djcn$n5p$1@build.eclipse.org...
> "Michael Weber" <micha.bgl@gmx.de> wrote in message
> news:g5dim0$kgs$1@build.eclipse.org...
>> Hi there,
>>
>> I would like to have the concrete file path to the folder where all
>> plugins are stored in. I've tried bundle.getLocation(). But this gives me
>> just the name of the jar-file or the directory of my plugin. I would like
>> to recieve somthing like this : c:\programs\myApp\plugins\myplugin.jar
>
> Plugins are not necessarily all in the same file path; they may be
> (indeed, in 3.4, often are) distributed across multiple paths. Files
> within a bundle are not necessarily accessible on the disk at all; they
> may be contained within a jar file. The directory that any given plugin
> is located in may not be writeable and is usually anyway not the right
> place to put user-created files or config info.
>
> Can you give some more info on what it is you're actually trying to do?
> We can probably help steer you to a better solution.
>
I have a feature which consists of 2 separate plugins (libary-plugin and
program-plugin). One plugin is just a container for all my libaries, which I
use in the program-plugin. Finally the libary-plugin should also include an
executable windows application (the application will run only on computers
with windows). I would like to call the executable application in the libary
plugin from my program-plugin with Runetime.getRuntime().exec(command). For
this I need the complete filepath to the plugin's directory. If you have a
better proposal I would be pleased to know about it.
kind regards,
micha
|
|
|
|
Powered by
FUDForum. Page generated in 0.04227 seconds