开发者

jar/zip files caching in Eclipse

开发者 https://www.devze.com 2023-03-05 03:02 出处:网络
I want know how jar/zip files are read by eclipse. I mean is a jar file read everytime when needed or it is cached. I found that there is a ZipCache which stores the open jar files.

I want know how jar/zip files are read by eclipse. I mean is a jar file read everytime when needed or it is cached. I found that there is a ZipCache which stores the open jar files.

ca开发者_StackOverflow中文版n anyone plss tell me how these files are read and what is the algorithm?

Thanks !! Swapnil


Do you mean org.eclipse.jdt.internal.core.JavaModelManager$ZipCache?

That holds open ZipFiles as JDT searches for classes and source in its model. Anyone that needs to access the contents of the jar goes through the cache to get the ZipFile.

There is code in the JavaModelManager that occasionally flushes the cache, probably in response to events like a project close.

0

精彩评论

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