开发者

How to access Eclipse refactoring scripts from command line for automation

Eclipse allows to create refactoring scripts through the GUI. I'm looking for a way to generate the script files with inputs from an ext开发者_高级运维ernal module and then automate the refactoring based on them. Would it be possible to do this by a mere jar/class call in a command line (bash script)?

Are there other options to do automated find and replace on large code base which won't break the code? Typically the projects contain all sorts of files java,jsp,css,html,Make,....


As far as I know, Eclipse does not include such an application (look for all definitions of the org.eclipse.core.runtime.applications extension point). It wouldn't be too hard to build one on top of the functionality of org.eclipse.ltk.core.refactoring and org.eclipse.ltk.ui.refactoring.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜