Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Re: Migrating a Europa custom installer to Galileo P2
Re: Migrating a Europa custom installer to Galileo P2 [message #132376] Thu, 04 June 2009 13:02 Go to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Derek wrote:
> Hi,
>
> We are starting to migrate our product from Europa to Galileo (we missed
> out Ganymede).
>
> Our product consists of RCP, our plugins and a large collection of files
> (executables, data file, etc) outside of the Eclipse install.
>
> For Europa, we wrote a custom InstallHandler that is invoked by the
> update process and allows us to update the 'external' files. This is
> working extremely well. We also use a similar facility to install
> additional (optional) functionality from our update site - it installs
> both the plugins and additional external files.
>
> We would like to do something similar with Galileo/P2:
> - is this possible?
> - are there any articles explaining how?
> - any hints on where to start?
>
> Thanks!
>

I've re-routed to e.t.equinox where the p2 people live. Basically, you
would be using p2 in 3.5. http://wiki.eclipse.org/Category:Equinox_p2
is the category for p2 articles.

http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions is the
p2 replacement for install handlers.

There are a few ant tasks that can take a current site.xml and generate
the correct p2 repository ... and then the extra work to write your
"native" touchpoints, I think.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Migrating a Europa custom installer to Galileo P2 [message #132930 is a reply to message #132376] Fri, 12 June 2009 12:59 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Paul Webster wrote:
> Derek wrote:
>> Hi,
>>
>> We are starting to migrate our product from Europa to Galileo (we
>> missed out Ganymede).
>>
>> Our product consists of RCP, our plugins and a large collection of
>> files (executables, data file, etc) outside of the Eclipse install.
>>
>> For Europa, we wrote a custom InstallHandler that is invoked by the
>> update process and allows us to update the 'external' files. This is
>> working extremely well. We also use a similar facility to install
>> additional (optional) functionality from our update site - it installs
>> both the plugins and additional external files.
>>
>> We would like to do something similar with Galileo/P2:
>> - is this possible?
>> - are there any articles explaining how?
>> - any hints on where to start?
>>


The concepts you are looking for are called "install handlers" in p2 as
well (also refered to as "meta requirements") and it allows an
installable unit to declare requirements on units that must be installed
prior to running the rest of the installation.

The neat thing is that the "install handlers" are just regular
installable units and sort of gives the same result as if the user first
installed them, and then the rest of the installation - only that the
user sees it as one operation.

Secondly, when using p2 to install, it invokes touchpoint actions to
perform the actual install. To invoke custom actions you need to
implement at least a touchpoint action, but possibly also a custom
touchpoint if you need additional things not provided in say the native
touchpoint.

As a starting point, take a look at how some of the p2 native actions
are implemented - like unzip, copy, etc.

I know there are articles and examples being worked on for Galileo release.

Regards
- henrik
Previous Topic:[Update Site] metadata
Next Topic:Proxy Authenication details not saved
Goto Forum:
  


Current Time: Fri Apr 19 07:15:08 GMT 2024

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

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

Back to the top