Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Plugin install particular operation
Plugin install particular operation [message #539071] Wed, 09 June 2010 14:38 Go to next message
Luca  is currently offline Luca Friend
Messages: 7
Registered: January 2010
Junior Member
Hi,

during the installation of my plugin, I need to unpack a file and put the content under a subfolder of the eclipse installation dir.

First I investigate the installHandler but I discovered that the I have to use the new p2 install manager.

So I tried to investigate the p2 features.

This is my requirements:
I have a feature composed by some plugins, I need to have a zip file that must be unzipped in eclipse/myfolder

I tried to put the file in the feature but the org.eclipse.equinox.p2.touchpoint.natives.unzip doesn't work, I think that is a path problem. How can I refer to the feature install folder? I tried with ${installFolder} but it doesn't work.

This is my p2.inf:
instructions.install = \
org.eclipse.equinox.p2.touchpoint.natives.unzip(source:${ins tallFolder}/agent.zip,target:c${#58}/);

Thank you
Re: Plugin install particular operation [message #539100 is a reply to message #539071] Wed, 09 June 2010 15:31 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
${installFolder} will be the root of the eclipse install.

One thing you can do is to have your feature contribute the agent.zip file
as a root file:

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. pde.doc.user/tasks/pde_rootfiles.htm

You can place the agent.zip in a temporary subfolder of the eclipse install:
root.folder.agent_temp=file:agent.zip
will result in
eclipse/agent_temp/agent.zip

Then you can use that unzip action:
org.eclipse.equinox.p2.touchpoint.natives.unzip(source
${installFolder}/agent_temp/agent.zip,target:c${#58}/);

and perhaps also remove the zip when you are done. (There is a "remove"
action and a "rmdir" action).
org.eclipse.equinox.p2.touchpoint.natives.remove(path
${installFolder}/agent_temp/agent.zip);
org.eclipse.equinox.p2.touchpoint.natives.rmdir(path
${installFolder}/agent_temp);


-Andrew
Luca wrote:

> Hi,
>
> during the installation of my plugin, I need to unpack a file and put the
> content under a subfolder of the eclipse installation dir.
>
> First I investigate the installHandler but I discovered that the I have to
> use the new p2 install manager.
>
> So I tried to investigate the p2 features.
>
> This is my requirements:
> I have a feature composed by some plugins, I need to have a zip file that
> must be unzipped in eclipse/myfolder
>
> I tried to put the file in the feature but the
> org.eclipse.equinox.p2.touchpoint.natives.unzip doesn't work, I think that
> is a path problem. How can I refer to the feature install folder? I tried
> with ${installFolder} but it doesn't work.
>
> This is my p2.inf:
> instructions.install = \
> org.eclipse.equinox.p2.touchpoint.natives.unzip(source:${ins
> tallFolder}/agent.zip,target:c${#58}/);
>
> Thank you
Re: Plugin install particular operation [message #539319 is a reply to message #539100] Thu, 10 June 2010 12:14 Go to previous message
Luca  is currently offline Luca Friend
Messages: 7
Registered: January 2010
Junior Member
Thank you...I'll try
Previous Topic:a normal (immediate) component instantiated twice unexpectedly
Next Topic:Help with the resolving a classloader issue
Goto Forum:
  


Current Time: Thu Mar 28 15:40:00 GMT 2024

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

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

Back to the top