jsedding / osgi-ds-metatype-diff

Tool to show the difference in Declarative Services and MetaType metadata of two OSGi bundles
4 stars 3 forks source link

Include manifest comparison #16

Open kwin opened 5 years ago

kwin commented 5 years ago

Currently only DS and metatype metadata is compared. What is missing is the actual manifest. Once that is included as well one would have a good overview of all OSGi metadata.

Since the main use case of this plugin is switching from legacy annotations to OSGi annotations this often goes along with also a tool switch. As the maven-bundle-plugin and the bnd-maven-plugin behave quite differently it would be interesting to see a diff on the manifest (at least for some headers) as well.

kwin commented 5 years ago

It would make sense then to rename the repo/artifact to osgi-metadata-diff. @jsedding WDYT?

jsedding commented 5 years ago

Sounds reasonable. It goes beyond the need I had when first writing this, but I can see the value.

With respect to naming, that could be done. I could also imagine osgi-bundle-diff as a possibility.

kwin commented 5 years ago

My main use case is switchting from maven-bundle-plugin to bnd-maven-plugin as those generate bundle headers very differently. If you switch from one to the other you could also use some tool support as Manifests are very hard to diff if you don't semantically diff them (i.e. order of headers might be different, clauses might have different order, some headers should be skipped...)