使用SVN管理Android工程

使用eclipse插件提交会出现:: Working copy not locked;this is probably a bug,please report svn:Working copy 'D:/temp/workspace/BOBO365/WebRoot/WEB-INF/classes/com' is missing or not locked 这种错误。

上网查了之后是因为eclipse把.svn这个文件夹也弄进去了,解决办法:

1. 打开Eclipse中的 Project->Properties->Java Build Path 菜单,在右侧面板中的"Source"选项卡,在Excluded中加入"**/.svn/**"。 
也就是把.svn文件夹从编译路径中排除,这样就不会出现上面的问题了。 

2.右键项目-》team-》设置属性-》名称: svn:ignore 内容: bin; 

我是两种都加了,然后就没有问题了。

3. 比较好:

主要是屏蔽几个文件夹: bin, gen  .classpath   .project

要想在eclipse里屏蔽它们,需要这样操作:
 
Click on Window -> Preferences
Select Team -> Ignored Resources
Click on Add Pattern  and enter "bin"
Click on Add Pattern  and enter "target"
Click on Add Pattern  and enter "m2-target"
Click on  Add Pattern  and enter "gen" 
Click on  Add Pattern  and enter ".classpath" 
Click on  Add Pattern  and enter ".project" 
Click on Apply  and then OK

posted @ 2015-07-06 17:08  perfect亮  阅读(192)  评论(0)    收藏  举报