且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Eclipse在哪里存储关于哪些文件“派生”的信息?

更新时间:2023-11-17 19:14:10

这个eclipse错误中,请求派生状态持续使用eclipse项目设置(可以是共享),而不是在工作区元数据(不能)。这个bug很老了,但仍然没有解决,但是还有很多的讨论。

Long discussion on this eclipse bug which requests that derived state is persisted with the eclipse project settings (which can be shared), rather than in the workspace metadata (which can not). The bug is quite old, and remains unaddressed, but there is quite a lot of discussion.

我的情况是我生成了大量的java类文件作为一部分的蚂蚁构建在工作空间目录中,并希望将其标记为派生,以便它们不会显示在搜索中。我认为我将采取的选择可能是调整自动化,以便标记其生成的资源:

My situation is that I'm generating a lot of java class files as part of an ant build in a workspace directory, and want to mark them as derived so they don't show up in searches. I think the option I will take is probably to adjust my automation so that it marks its generated resources as derived:

IResource.setDerived(true);

OP的情况似乎有所不同。我可能会尝试将项目的构建路径放在一个变量上,每个用户可以独立定义,所以您的.classpath文件对于所有用户都是一样的。

The OP's situation seems somewhat different. I'd probably try and base my project's build paths on a variable which each user can define independently, so your .classpath file is the same for all users.