Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Building in Software Sites (headless)?
Building in Software Sites (headless)? [message #65244] Mon, 22 June 2009 16:24 Go to next message
Eclipse UserFriend
We have an RCP-based, feature-based product using SDK 3.5RC4. We include
our main feature and Eclipse features such as the CDT in the product.
Although I specify an Update Site URL in our feature.xml, when I run the
built product and open Window, Preferences, Install/Update, Available
Software Sites, no sites at all are visible.

I would like Available Software Sites to come up with our update site
listed and enabled, and used for Check for Updates. I don't want other
sites, like CDT sites, listed or enabled. How is this done?

We build headlessly using ant script and PDE to build our product and its
repository, then p2.director to install the repo into the product, as in
Eclipse 3.4.

Thanks!
MSacarny
Re: Building in Software Sites (headless)? [message #65327 is a reply to message #65244] Tue, 23 June 2009 11:19 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure about sites listed in the features. But in 3.5 you can add
repositories using the p2.inf
(http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata).

I would look something like this:
instructions.configure=\
addRepository(type:0,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.5,name:The
Eclipse Project Updates);\
addRepository(type:1,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.5,name:The
Eclipse Project Updates);

One is for the metadata, the other for artifacts, note that ':' are
escaped as ${#58}.

The wiki page about customizing metadata is new 3.5 support when you are
using the publisher. The 3.4 style p2.generate.metadata integration in
pde.build uses the old metadata generator. Here p2.inf is only
supported for bundles, and only the "instructions" properties work. It
should be placed beside the manifest of one of the bundles in your
product and it needs to be included in the binary bundle. It will work
for adding repositories, but you can't do all the other cool stuff in there.

In 3.5, PDE/Build has better p2 integration. If you use the new
"p2.gathering = true" support, then you can use everything else
described on that wiki.

Check out new docs at
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_p2_builds.htm
and also in the help of your 3.5RC4 eclipse.

-Andrew

msacarny wrote:
> We have an RCP-based, feature-based product using SDK 3.5RC4. We include
> our main feature and Eclipse features such as the CDT in the product.
> Although I specify an Update Site URL in our feature.xml, when I run the
> built product and open Window, Preferences, Install/Update, Available
> Software Sites, no sites at all are visible.
> I would like Available Software Sites to come up with our update site
> listed and enabled, and used for Check for Updates. I don't want other
> sites, like CDT sites, listed or enabled. How is this done?
>
> We build headlessly using ant script and PDE to build our product and
> its repository, then p2.director to install the repo into the product,
> as in Eclipse 3.4.
>
> Thanks!
> MSacarny
>
Re: Building in Software Sites (headless)? [message #65369 is a reply to message #65327] Tue, 23 June 2009 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Andrew,
Colocating p2.inf with our product file at build time seemed to work even
with generate.p2.metadata, so I will go with that for now unless that is
incorrect.

Thanks again,
MSacarny
Re: Building in Software Sites (headless)? [message #66102 is a reply to message #65369] Mon, 29 June 2009 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Adding default Available Software Sites via p2.inf located next to the
manifest.mf file in our branding plugin works just fine in XP case, but
not on Vista. Still absent.

On Vista, I see the site path in several profile files in install folder:
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/<product >Profile.profile
and I also see it in:
eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\<product >Profile.profile\.data\.settings\
org.eclipse.equinox.p2.artifact.repository.prefs
org.eclipse.equinox.p2.metadata.repository.prefs
but I don't see it in any of the per-user files created after start up
under the @user.home/.eclipse/<product
hash>/p2/org.eclipse.equinox.p2.engine/profileRegistry/<product >Profile.profile
folder.

Any other settings I should make? Diagnostics?
Thanks!
MSacarny
Re: Building in Software Sites (headless)? [message #68950 is a reply to message #66102] Thu, 23 July 2009 15:50 Go to previous messageGo to next message
Eclipse UserFriend
I have what looks to be the same problem.

I am building a product, and have set the p2.inf in my product feature as
suggested. I see the entries in the profiles in the installation, but not
in the user home directory, either on vista or os x 10.5.

How can we set discovery sites for product builds now that the discovery
sites set in the feature.xml are set to disabled?

Thanks,

Adam Berry
Re: Building in Software Sites (headless)? [message #373117 is a reply to message #68950] Wed, 29 July 2009 08:45 Go to previous message
Eclipse UserFriend
Please see Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=282740
Known limitation: Default update sites work for XP but not Vista, shared
installs. This is unfortunate for those trying to delivering products.
Re: Building in Software Sites (headless)? [message #598493 is a reply to message #65244] Tue, 23 June 2009 11:19 Go to previous message
Eclipse UserFriend
I'm not sure about sites listed in the features. But in 3.5 you can add
repositories using the p2.inf
(http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata).

I would look something like this:
instructions.configure=\
addRepository(type:0,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.5,name:The
Eclipse Project Updates);\
addRepository(type:1,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.5,name:The
Eclipse Project Updates);

One is for the metadata, the other for artifacts, note that ':' are
escaped as ${#58}.

The wiki page about customizing metadata is new 3.5 support when you are
using the publisher. The 3.4 style p2.generate.metadata integration in
pde.build uses the old metadata generator. Here p2.inf is only
supported for bundles, and only the "instructions" properties work. It
should be placed beside the manifest of one of the bundles in your
product and it needs to be included in the binary bundle. It will work
for adding repositories, but you can't do all the other cool stuff in there.

In 3.5, PDE/Build has better p2 integration. If you use the new
"p2.gathering = true" support, then you can use everything else
described on that wiki.

Check out new docs at
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_p2_builds.htm
and also in the help of your 3.5RC4 eclipse.

-Andrew

msacarny wrote:
> We have an RCP-based, feature-based product using SDK 3.5RC4. We include
> our main feature and Eclipse features such as the CDT in the product.
> Although I specify an Update Site URL in our feature.xml, when I run the
> built product and open Window, Preferences, Install/Update, Available
> Software Sites, no sites at all are visible.
> I would like Available Software Sites to come up with our update site
> listed and enabled, and used for Check for Updates. I don't want other
> sites, like CDT sites, listed or enabled. How is this done?
>
> We build headlessly using ant script and PDE to build our product and
> its repository, then p2.director to install the repo into the product,
> as in Eclipse 3.4.
>
> Thanks!
> MSacarny
>
Re: Building in Software Sites (headless)? [message #598506 is a reply to message #65327] Tue, 23 June 2009 13:56 Go to previous message
Eclipse UserFriend
Andrew,
Colocating p2.inf with our product file at build time seemed to work even
with generate.p2.metadata, so I will go with that for now unless that is
incorrect.

Thanks again,
MSacarny
Re: Building in Software Sites (headless)? [message #598764 is a reply to message #65369] Mon, 29 June 2009 10:05 Go to previous message
Eclipse UserFriend
Adding default Available Software Sites via p2.inf located next to the
manifest.mf file in our branding plugin works just fine in XP case, but
not on Vista. Still absent.

On Vista, I see the site path in several profile files in install folder:
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/<product >Profile.profile
and I also see it in:
eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\<product >Profile.profile\.data\.settings\
org.eclipse.equinox.p2.artifact.repository.prefs
org.eclipse.equinox.p2.metadata.repository.prefs
but I don't see it in any of the per-user files created after start up
under the @user.home/.eclipse/<product
hash>/p2/org.eclipse.equinox.p2.engine/profileRegistry/<product >Profile.profile
folder.

Any other settings I should make? Diagnostics?
Thanks!
MSacarny
Re: Building in Software Sites (headless)? [message #599863 is a reply to message #66102] Thu, 23 July 2009 15:50 Go to previous message
Eclipse UserFriend
I have what looks to be the same problem.

I am building a product, and have set the p2.inf in my product feature as
suggested. I see the entries in the profiles in the installation, but not
in the user home directory, either on vista or os x 10.5.

How can we set discovery sites for product builds now that the discovery
sites set in the feature.xml are set to disabled?

Thanks,

Adam Berry
Re: Building in Software Sites (headless)? [message #600067 is a reply to message #68950] Wed, 29 July 2009 08:45 Go to previous message
Eclipse UserFriend
Please see Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=282740
Known limitation: Default update sites work for XP but not Vista, shared
installs. This is unfortunate for those trying to delivering products.
Previous Topic:build.properties : parameter to build plugin as directory instead of jar archive.
Next Topic:assertion exception from p2 while exporting
Goto Forum:
  


Current Time: Fri Apr 25 03:59:24 EDT 2025

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

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

Back to the top