How can I ignore build directory in Subclipse?

[亡魂溺海] 提交于 2019-12-23 09:29:56

问题


After build, I got tons of class files in build directory which is automatically generated. I don't want to commit them, so I tried to ignore them using Team -> Add to svn:ignore, but they are already grayed out.

I tried to remove the build directory with Project -> Clean, but interestingly Subclipse still has them when I tried to commit.

What went wrong? How can I ignore the build directory in Subclipse?


回答1:


You cannot ignore a file which is already in the svn repository. Delete that file from the repository and then try it again




回答2:


I think they already got added in the version control view and not committed yet. I hope you do n't see your files in your subclipse repository. If so, try performing a project-> team -> cleanup first.

If this doesn't work, please let me know, I will share you the steps to perform the clean-up manually.

Please note: By clean, I am not referring project clean but I am referring repository cache cleanup which is maintained in .svn folder of your project folders.




回答3:


I had to revert (team -> revert) beforehand to enable the (team -> add to svn) item. I'm not sure this is relevant to this change, but I had to execute svn update manually in order to remove some errors.



来源:https://stackoverflow.com/questions/12982579/how-can-i-ignore-build-directory-in-subclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!