Eclipse 中的增量编译。 ASTNode-s 和 SVN 版本控制
在分析 Eclipse 中的源代码后,我正在建立一些统计数据。但整个过程太慢了,因为每次编译后我每次都从头开始重建模型。 我正在寻找一种方法来仅获取代码的更改部分(如 ASTNodes)并仅重建模型的该部分。我想即使是更改的编译单元而不是确切的代码元素在用户编译后就足够了,并且仍然是一个很好的优化。
我确信 Eclipse 能够知道哪些代码元素被更改(甚至知道它们的语义),因为当我使用 subclipse 插件时,我的更改是按代码元素(导入、方法、变量声明等)排序的。好吧..至少该插件能够知道该信息。
提前致谢
I am building up some statistics after analyzing the source code in eclipse. But the overall process is too slow because i rebuild my model every time from scratch after each compilation.
I am looking for a way to get only the changed parts of the code (as ASTNodes) and to rebuild just that part of my model. I suppose that even the changed compilation units and not the exact code elements would be enough after the user compiles and still would be a nice optimization.
I am sure eclipse is capable of knowing what code elements are changed (and even to know their semantics), because when I use the subclipse plugin my changes are ordered by a code element (an import, a method, a variable declaration, etc). Well.. at least that plugin is capable of knowing that info.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Eclipse 构建器基础架构正是出于这个原因而创建的。首先,我建议以下文章和常见问题解答条目。
The Eclipse builder infrastructure is created for exactly this reason. For a start I suggest the following article and FAQ entry.