[英]svn causes build errors in eclipse
I imported a java project into eclipse which had .svn folders in it. 我将一个Java项目导入到其中具有.svn文件夹的eclipse中。 The project did on build properly and it gave errors.
该项目的构建正确,但出现了错误。 But, once I deleted the .svn folders from the project, eclipse did not show any errors.
但是,一旦我从项目中删除了.svn文件夹,eclipse就不会显示任何错误。 What is the reason ?
是什么原因 ?
May be, as pointed out in this thread , you need to add .svn to the list of things you don't want copied to the output folder. 可能是,正如该线程中指出的那样,您需要将.svn添加到不想复制到输出文件夹的内容列表中。
Window->Preferences->Java->Compiler->Building->Output folder
Indeed, when I added added "
.svn
" to the list of "Filtered Resources", the problem went away.确实,当我在“过滤的资源”列表中添加“
.svn
”时,问题就消失了。
I had two source directories:src
andtest
, which both were in SVN.我有两个源目录:
src
和test
,它们都在SVN中。
Apparently Eclipse realized thatsrc/.svn/entries
andtest/.svn/entries
are duplicates and it complained.显然,Eclipse意识到
src/.svn/entries
和test/.svn/entries
是重复的并且抱怨。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.