[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Metadata comparison

Hi Henrik,

Thank you for your suggestion. This seems very promising and so I went for it:

1. Starting with Eclipse 3.6.2 and installed additions for EMF-Compare and b3 aggregator via update sites mentioned on the Eclipse wiki.


2. Create a simple aggregator model in the Aggregator Model Editor:

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" label="first-test" buildRoot="build">
<configurations/>
<configurations operatingSystem="linux" windowSystem="gtk"/>
<contributions label="test">
<repositories location="C:\Components\Eclipse" mirrorArtifacts="false"/>
<repositories location="C:\Components\Equinox" mirrorArtifacts="false"/>
</contributions>
</aggregator:Aggregator>

3. This model builds fine and when it is opened with the Aggregator Model Editor I see two p2 repos and their contents as a tree which is very cool.

---

This is were I got stuck as I could not figure out how to get an EMF file of the p2 repositories.

Message http://www.eclipse.org/forums/index.php/m/521750/ mentions the ecore model for p2 and the need to supporting saving these files. However I did not find a way to save these so that I can use the EMF compare on it.

I tried selecting both p2 repo nodes in the Aggregator Model Editor and then compare via context menu entry 'Compare with -> Each Other' but that wasn't enabled. While this was not unexpected, that would be a great feature.

From https://bugs.eclipse.org/bugs/show_bug.cgi?id=306980 it appears I may need a newer version of the aggregator and to write code.
Is there an end user feature available in some newer version supporting this?


Thank you

Henrich