[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] How to clean up P2 metadata
|
I see the DropinsRepositoryListener class (inherits from
RepositoryListener) has methods to remove IUs from metadata repository.
I am wondering if there is any hook I can invoke the p2 reconciler
dropins application to do what I want. I can't seem to find an example
on how to do that.
Thanks,
Andy
Andy Jin wrote:
Does anyone have idea how to clean up the P2 metadata programmatically?
I was thinking of invoking the P2 uninstall operand method but I don't
know how to start, and also I have to know all the IUs installed by
the DropinsRepositoryListener which could be a brutal "search for all
docs" kind of process.
Thanks,
Andy
Andy Jin wrote:
Our product composes of the main product and a documentation
extension site. Prior to P2 I used one link file under
"eclipse/links" folder to include the documentation extension site.
Every release of the product ships a new doc extension site
containing updated doc updates. The same Eclipse IDE can be
re-targeted to pick up from different doc sites. The link file is
updated by our product installer to point to right doc site.
With P2, there is a problem. For example I have three releases of doc
sites - site1, site2 and site3. Later release has new version for the
same docs' plugins.
At first, P2 generates the metadata (bundles.info) for site1. After I
switch to site2 P2 generates metadata for site2 but leave site1
bundles there. After I switch to site3, I got three sites metadata
all in the bundles.info.
Now I see my documentations messed up with old and new release. Old
docs which are deprecated in newer release still show up, while
updated docs from newer release always overwrite the same docs from
older release which mean I can't go back to the older release doc set.
Considering every time when I switch my release I restart Eclipse, is
there a way I can force P2 to clean up its metadata and re-calculate
so it always pick up the right doc extension site?
Thanks,
Andy
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev