开发者

Running JDT compiler from command line with Eclipse configuration file

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 doe开发者_JAVA技巧sn'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?


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?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜