Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] P2 and Presence of site.xml

Simply, if artifacts.{xml|jar} and content.{xml|jar} is found at the URL, site.xml is ignored.

So you can have an Eclipse 3.4+ site in the same location as an Eclipse 3.3- site, and control who sees what by virtue of the version of Eclipse looking at the site.

To force an Eclipse 3.4+ user to see the 3.3- site, suffix the URL w/ site.xml and they'll get that instead of artifacts and content (.xml or .jar).

Mark Melvin wrote:
Hi There,

We are going to have to start thinking about our corporate update site
soon and I just realized that we are going to have old, non-P2 installs
out there pointing to the same update URL as our new, P2-based product
and I'm wondering what the side-effects are going to be for our P2-based
product.  I seem to recall reading somewhere that P2 does "different
stuff" based on whether or not a site.xml is present.  In particular, I
think what I read was something about how categories are shown in the
UI.  I was wondering first of all, if this was true and second, if there
are other bits of behaviour that will be different if P2 detects a
site.xml.

Also, is it possible to have a P2 repository located at the same URL as
a legacy update site (containing a site.xml) where the P2 repositor
describes a completely different set of features and plugins as the old
site-xml-based update site?  Or is the presence of a site.xml going to
make P2 simply use it and ignore any P2 repository that may be there.

I'm asking because it may be too late to change our URL in the new P2
product, and I'll need to figure out a solution (perhaps moving the old
site.xml-based update site and forcing legacy users to manually enter a
policy file URL or something).

Thanks,
Mark.
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev

--
Nick Boldt :: http://nick.divbyzero.com
Release Engineer :: Eclipse Modeling & Dash Athena


Back to the top