Hi All,

I have created a small java tool [1] to analyse OSGI bundles and analyse
all kinds of jar files. Basically did this for two reasons.

1) When adopting the OSGI best practices, needed to find out whether final
outcome of bundle contains correct information. (For this
MetaInfoExtractor.java class can be used)

2) When debugging applications sometimes need to find what are the packages
it contains. (This is not that important. but I faced with a situation
where I couldn't find the bundle which contains specific package. So to
resolve that created JarFileExtractor.java class)

We can specify a "jarFolderToBeAnalysed" and "tempFolder" folder in the
tool. What it does is, copy each and every jar inside
"jarFolderToBeAnalysed" folder(Iterate through whole folder structure) to
the "tempFolder" folder, analyse them inside "tempFolder" folder and create
text files with the jar name in it.

Note that this is a basic tool so you need to open that in a IDE and run it
(Need to modify to work in CLI)

Hope this will help people who faced with similar issues

[1] - https://github.com/lankavitharana/JarAnalyser

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to