使用“自动构建”是否浪费时间? Eclipse 中 Java 项目的选项?
我正在 Eclipse 中开发 J2EE Web 应用程序(实际上是 RAD)。我一直使用“项目>自动构建”选项。然而,我注意到这并不总是必要的,因为当我保存文件时 Eclipse 似乎会将更改推送到我的服务器。这很好用,但我想知道为什么默认情况下会检查它。
我可以想到一些时候完全构建和部署应用程序是有意义的:
- 更改在应用程序启动时加载的 XML 配置文件(application.xml、web.xml、bean 配置 xml 文件等)
- 后类上的静态变量
除此之外,我想不出其他时候启用自动构建选项是至关重要的(或有用的)。我的上述假设是否错误?我只是通过自动构建浪费了很多时间吗?
I'm developing J2EE webapps in Eclipse (RAD, actually). I've always used the "Project > Build automatically" option. However, I noticed that this isn't always necessary because Eclipse seems to push out changes to my server when I save a file. This works great but I'm wondering why this would be checked by default.
I can think of a few times when it makes sense to fully build and deploy the app:
- After changing a XML configuation file that gets loaded at app startup (application.xml, web.xml, bean configuration xml files, etc)
- After changing a static variable on a class
Other than this, I can't think of other times when it would be crucial (or useful) to enable the build automatically option. Am I incorrect in my above assumptions? Am I just wasting a bunch of time by building automatically??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自动构建首先进行编译。如果双击服务器视图中的服务器,您可以禁用自动发布(参见屏幕)。自动发布与自动构建无关。
The automatic build compiles in the first-place. You can disable the automatic publishing (see screen) if you double-click on the server in the server-view. The automatic publishing has nothing to do with automatic build.