一些大型Java项目可能需要很长时间才能编译。 例如,20分钟或更长时间。 显然,在这样大小的项目中,你不希望构建失败18分钟,因为缺少分号。
像findbugs或其他工具这样的实用程序是否会为您捕获编译错误而无需花时间进行编译?
提前谢谢
史蒂夫
Some large Java projects can take a long time to compile. For example, 20 minutes or more. Obviously, on a project of that size you don't want a build failing 18 minutes into it for a missing semicolon.
Will utilities like findbugs or other tools catch compilation errors for you without having to invest the time in compiling?
Thanks in advance either way
Steve
最满意答案
我会使用IDE。 这将在您键入行时显示行中的错误,甚至为它们提供自动修复。 它们还支持增量编译,因此只需要重新编译受更改影响的文件。
AFAIK大多数IDE都支持ant和maven构建。
I would use an IDE. This will show you errors in lines as you type them and even offer auto-fixes for them. They also support incremental compilation so only the files effected by a change need to be re-compiled.
AFAIK Most IDEs support ant and maven builds.
更多推荐
发布评论