Sandbox Home Path

Hi,
I want to use the sandbox Home path in my program.Please tell me how can
i get the path.Is there any API available to get or set the sandbox home
path.

Thanks,
Yuvraj


3 comments

Can you give some explanation for what purpose you are using the sandbox
path? If you're simply interested in the location of your plugin then
there are simpler ways than determining the sandbox path.

yuvraj wrote:

Hi,
I want to use the sandbox Home path in my program.Please tell me how can
i get the path.Is there any API available to get or set the sandbox home
path.

Thanks,
Yuvraj


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Hi Martin,
I want the sanbox path because there are few property files inside my
plugin src directory .If the sandbox path is provided other than IDEA's path
the plugin gets's deployed over there .So i want to get the sandbox path and
the plugin path also.
I do also require to find the plugin deployment path so please tell me the
procedure to do that also.

Thanks,
Yuvraj

"Martin Fuhrer" <mf@fuhrer.com> wrote in message
news:dsrul1$bsb$1@is.intellij.net...

Can you give some explanation for what purpose you are using the sandbox
path? If you're simply interested in the location of your plugin then
there are simpler ways than determining the sandbox path.

>

yuvraj wrote:

>> Hi,
>> I want to use the sandbox Home path in my program.Please tell me how
>> can i get the path.Is there any API available to get or set the sandbox
>> home path.
>>
>> Thanks,
>> Yuvraj
>

--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com



0

If you want to load a property file inside the classes directory:

getClass().getClassLoader().getResourceAsStream(MyPropertyFile);

If you want to know where your plugin classes are located:

PathUtil.getJarPathForClass(getClass());

If you want to know where user plugins are located:

PathManager.getPluginsPath();

yuvraj wrote:

Hi Martin,
I want the sanbox path because there are few property files inside my
plugin src directory .If the sandbox path is provided other than IDEA's path
the plugin gets's deployed over there .So i want to get the sandbox path and
the plugin path also.
I do also require to find the plugin deployment path so please tell me the
procedure to do that also.

Thanks,
Yuvraj

"Martin Fuhrer" <mf@fuhrer.com> wrote in message
news:dsrul1$bsb$1@is.intellij.net...

>> Can you give some explanation for what purpose you are using the sandbox
>> path? If you're simply interested in the location of your plugin then
>> there are simpler ways than determining the sandbox path.
>>
>> yuvraj wrote:
>>> Hi,
>>> I want to use the sandbox Home path in my program.Please tell me how
>>> can i get the path.Is there any API available to get or set the sandbox
>>> home path.
>>>
>>> Thanks,
>>> Yuvraj
>> --
>> Martin Fuhrer
>> Fuhrer Engineering AG
>> http://www.fuhrer.com



--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Please sign in to leave a comment.