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  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #598493 is a reply to message #65244] |
Tue, 23 June 2009 11:19  |
Eclipse User |
|
|
|
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 #598764 is a reply to message #65369] |
Mon, 29 June 2009 10:05  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
| |
Goto Forum:
Current Time: Fri Apr 25 03:59:24 EDT 2025
Powered by FUDForum. Page generated in 0.04149 seconds
|