使用 Eclipse 配置文件从命令行运行 JDT 编译器
此帮助页面描述如何从命令行运行 Eclipse 格式化程序,为其提供从 Eclipse 导出的格式化设置。例如,这对于创建格式化 Ant 任务非常有用,当您无法/不想打开 Eclipse GUI 时,可以从命令行运行该任务。我想做同样的事情,只是使用 Eclipse JDT 编译器。
我见过 这个 帮助页面介绍了运行 ecj.jar,但据我所知,它不支持将 Eclipse 配置文件作为输入。我不想同时维护 Eclipse 配置和命令行工具的选项。
有谁知道从命令行导出 Eclipse 错误/警告设置进行编译的现有机制?
This help page describes how to run the Eclipse formatter from the command line, giving it formatting settings exported from Eclipse. This is great, for example, for creating a formatting Ant task that can be run from the command line for this times when you can't/don't want to open the Eclipse GUI. I want to do the same thing, only with the Eclipse JDT compiler.
I've seen this help page on running ecj.jar, but as far as I can tell it doesn't support taking an Eclipse configuration file as input. I don't want to have to maintain the Eclipse configuration and the command line tool's options in parallel.
Does anyone know of an existing mechanism for compiling with exported Eclipse error/warning settings from the command line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_apt_building_with_apt.htm
这对您有帮助吗?
Take a look at
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_apt_building_with_apt.htm
Does this help you?