开发者

Validate OSGi Manifest

What's the best way to parse and validate an OSGi manifest file? I've got a bunch of MANIFEST.MF files and there's a syntax error in one o开发者_JS百科f them. What's the best tool to do this? I'd rather not have to load all the bundles into Eclipse to find the problem.


Seems like BND tool can provide such manifest checking, but I'm not sure how ...

OK, According to the command line page, you can do a

 bnd print -verify *.jar

to check jar validity.

Besides, are your bundles not built in Eclipse world, I recommend you to create them using the excellent Felix bundle plugin which is in fact a wrapper around the aforementionned BND.


Spring also has manifest parsing and editing files in their libraries - the class is com.springsource.util.osgi.manifest.BundleManifest.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜