Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Copying across executables as part of P2 installation(Copying across executables as part of P2 installation)
Copying across executables as part of P2 installation [message #544795] Mon, 05 July 2010 14:37 Go to next message
Charlie Matters is currently offline Charlie Matters
Messages: 4
Registered: July 2010
Junior Member
Hello,

I am interested in using the simple P2 installer provided on the wiki to install a feature into Eclipse. At the same time, I would like to copy across an executable to a specific folder (let's say /bin) .

I know this is a fairly newbie question, but how would I go about setting up my repository, and/or anything else that is required?

Kind Regards,

Charlie Matters
Re: Copying across executables as part of P2 installation [message #544842 is a reply to message #544795] Mon, 05 July 2010 17:06 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
You need to deliver the executables as "binary" artifacts in the p2
repository. These then get extracted into the root of the install.

The binary artifact is really just a zip, you can arrange to have your
executables in a /bin subfolder inside the zip.

If you are creating your repo via feature/product export, or you are using
PDE/Build, then you can creaet these binary artifacts just by using feature
root files:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. pde.doc.user/tasks/pde_rootfiles.htm
You add root* properties to the feature's build.properties file. Something
like:
org.feature:
/executables/bin/foo.exe
build.properties :
root = executables
feature.xml
This adds the contents of the "executables" folder into the binary artifact.

-Andrew
Charlie Matters wrote:

> Hello,
>
> I am interested in using the simple P2 installer provided on the wiki to
> install a feature into Eclipse. At the same time, I would like to copy
> across an executable to a specific folder (let's say /bin) .
>
> I know this is a fairly newbie question, but how would I go about setting
> up my repository, and/or anything else that is required?
>
> Kind Regards,
>
> Charlie Matters
Re: Copying across executables as part of P2 installation [message #545233 is a reply to message #544842] Wed, 07 July 2010 09:34 Go to previous message
Charlie Matters is currently offline Charlie Matters
Messages: 4
Registered: July 2010
Junior Member
Hi Andrew,

Thanks for that - it works perfectly now. It's satifying to see the Check For Updates go in and remove old .exes and replace them with new ones!

My only problem now is that when specifying the 'eclipse.p2.installLocation' property in the instll.properties file, it does not install everything, whereas not setting it and have the user be prompted works fine!

Charlie
Re: Copying across executables as part of P2 installation [message #561546 is a reply to message #544795] Mon, 05 July 2010 17:06 Go to previous message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
You need to deliver the executables as "binary" artifacts in the p2
repository. These then get extracted into the root of the install.

The binary artifact is really just a zip, you can arrange to have your
executables in a /bin subfolder inside the zip.

If you are creating your repo via feature/product export, or you are using
PDE/Build, then you can creaet these binary artifacts just by using feature
root files:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. pde.doc.user/tasks/pde_rootfiles.htm
You add root* properties to the feature's build.properties file. Something
like:
org.feature:
/executables/bin/foo.exe
build.properties :
root = executables
feature.xml
This adds the contents of the "executables" folder into the binary artifact.

-Andrew
Charlie Matters wrote:

> Hello,
>
> I am interested in using the simple P2 installer provided on the wiki to
> install a feature into Eclipse. At the same time, I would like to copy
> across an executable to a specific folder (let's say /bin) .
>
> I know this is a fairly newbie question, but how would I go about setting
> up my repository, and/or anything else that is required?
>
> Kind Regards,
>
> Charlie Matters
Re: Copying across executables as part of P2 installation [message #561620 is a reply to message #544842] Wed, 07 July 2010 09:34 Go to previous message
Charlie Matters is currently offline Charlie Matters
Messages: 4
Registered: July 2010
Junior Member
Hi Andrew,

Thanks for that - it works perfectly now. It's satifying to see the Check For Updates go in and remove old .exes and replace them with new ones!

My only problem now is that when specifying the 'eclipse.p2.installLocation' property in the instll.properties file, it does not install everything, whereas not setting it and have the user be prompted works fine!

Charlie
Previous Topic:Huge export size of RCP p2 enabled product
Next Topic:Huge export size of RCP p2 enabled product
Goto Forum:
  


Current Time: Tue Oct 21 00:50:19 GMT 2014

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

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