Skip to main content



      Home
Home » Eclipse Projects » Equinox » How to automatically add an update site in "Available Software"
How to automatically add an update site in "Available Software" [message #121953] Sun, 30 November 2008 17:48 Go to next message
Eclipse UserFriend
Is it possible to automatically add an update site to the list in
"Available Software"?

I have a feature available from a P2 repository that has a dependency on
another feature in a different P2 repository.

So, I added a reference to the second repository as a discovery site in my
feature.xml:
<url>
<update label="%updateLabel"
url="http://download.eclipse.org/tools/ajdt/34/update"/> <!-- My site -->
<discovery label="%eaUpdateLabel"
url=" http://download.eclipse.org/tools/ajdt/34/dev/equinox-aspect s"/>
<!-- Dependent site -->
</url>

I would expect that when trying to install the feature in my update site,
it would automatically check the features in the discovery site for
dependencies.

It doesn't.

In order to install my feature, it is necessary to have the second site in
the list of "Available Software". If it's not there (even if the site is
included in "Manage Sites...", my feature will not install.

Any ideas how to get around this?

thanks for your help,

--andrew
Re: How to automatically add an update site in "Available Software" [message #122093 is a reply to message #121953] Mon, 01 December 2008 14:58 Go to previous messageGo to next message
Eclipse UserFriend
OK. After a little more investigation, it seems that there is a line in
the content.xml file that determines if a site is enabled or not. There
is a references element in the xml:

<references size='1'>
<repository
url=' http://download.eclipse.org/tools/ajdt/34/dev/equinox-aspect s'
type='1' options='0'/>
</references>

If options is set to 0, then site is disabled. If set to 1, then enabled.

It seems that if I manually edit the cached version of the content.xml for
the AJDT update site, then I can install with no problems.

How can I produce a content.xml with a discovery site automatically
enabled?
Re: How to automatically add an update site in "Available Software" [message #122106 is a reply to message #122093] Tue, 02 December 2008 12:21 Go to previous message
Eclipse UserFriend
The solution is to use the associateSitesURL argument in the site.xml .

Snjeza

Andrew Eisenberg wrote:
> OK. After a little more investigation, it seems that there is a line in
> the content.xml file that determines if a site is enabled or not. There
> is a references element in the xml:
>
> <references size='1'>
> <repository
> url=' http://download.eclipse.org/tools/ajdt/34/dev/equinox-aspect s'
> type='1' options='0'/>
> </references>
>
> If options is set to 0, then site is disabled. If set to 1, then enabled.
>
> It seems that if I manually edit the cached version of the content.xml
> for the AJDT update site, then I can install with no problems.
>
> How can I produce a content.xml with a discovery site automatically
> enabled?
>
Previous Topic:Service still used after stopping / uninstalling the service (ServiceTrackerCustomizer)
Next Topic:Vista / Server 2008 problems in server side eclipse
Goto Forum:
  


Current Time: Mon Jun 09 01:29:18 EDT 2025

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

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

Back to the top