我将一个 java 项目导入到 eclipse 中,其中包含 .svn 文件夹。该项目正确构建并给出了错误。但是,一旦我从项目中删除了 .svn 文件夹,eclipse 就不会显示任何错误。这是什么原因?
最佳答案
可能是,正如this thread中指出的那样,您需要将 .svn 添加到您不想复制到输出文件夹的内容列表中。
Window->Preferences->Java->Compiler->Building->Output folder
Indeed, when I added added "
.svn
" to the list of "Filtered Resources", the problem went away.
I had two source directories:src
andtest
, which both were in SVN.
Apparently Eclipse realized thatsrc/.svn/entries
andtest/.svn/entries
are duplicates and it complained.
关于java - svn 导致 eclipse 中的构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1817471/