使用 Eclipse 配置文件从命令行运行 JDT 编译器

发布于 2024-11-01 15:29:00 字数 527 浏览 8 评论 0原文

此帮助页面描述如何从命令行运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文