为什么Eclipse有时会重建整个工作区? [英] Why does Eclipse sometimes rebuild the whole workspace?

查看:67
本文介绍了为什么Eclipse有时会重建整个工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse Luna 4.4.0.在启动Eclipse并没有进行任何更改之后,有时会重新构建整个工作区,这很烦人.它不是增量构建,而是完全重建(包括清理所有项目的输出文件夹).

I use Eclipse Luna 4.4.0. After I start Eclipse and haven't changed anything it sometimes rebuilds the whole workspace which is sort of annoying. It is not an incremental build, but a full rebuild (which includes cleaning output folders of all projects).

我将自动构建用于项目(所有Java,都使用svn和git),但是自动构建不应导致这种行为.

I use autobuild for projects (all java, using svn and git), but autobuild should not lead to this behaviour.

什么触发了完整的工作空间重建?错误日志不包含任何提示.

What triggers the complete workspace rebuild? The error log does not contain any hint.

推荐答案

通常,生成器按以下方式触发(来自

Generally, the builder gets triggered as follows (from the Eclipse wiki).

JDT使用平台提供的自动构建功能.如果资源发生更改,平台将检查项目描述文件(请参阅项目中的.project).当文件包含对Java构建器的引用时,该构建器将收到有关更改的通知,然后将编译Java源文件及其依赖项.

JDT uses the autobuild facilities provided by the platform. If a resource changes, the platform checks the project description file (see .project in your projects). When the file contains a reference to the Java builder, the builder gets notified of the change and will then compile the Java source file and its dependents.

我不知道是什么在启动时真正触发了构建(我一直有感觉,它在启动时以某种方式使Eclipse有意义").可能是在启动过程中对某些资源进行了 touch (如果您使用的是Linux系统)?

I don't know what exactly triggers the build on startup (I've always had the feeling that it somewhow "made sense" for Eclipse to do so when starting). Could it be that some of your resources are touched (if you're on a Linux system) during startup?

它还在Wiki上说了如何关闭自动构建功能(我想您已经完全意识到了这一点):

It also says there on the wiki how to switch off autobuilding (which I guess you're already fully aware of):

可以通过窗口>首选项>常规>工作区>自动构建来关闭

自动构建.

Eclipse的bugzilla中也有相关的错误,例如 https://bugs.eclipse.org/bugs/show_bug.cgi?id=73969 https://bugs.eclipse.org/bugs/show_bug.cgi?id = 172444 .

There are also related bugs on Eclipse's bugzilla, e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=73969, https://bugs.eclipse.org/bugs/show_bug.cgi?id=172444.

这篇关于为什么Eclipse有时会重建整个工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆