开发者

How do I get Eclipse to play nice with my SVN checkout?

开发者 https://www.devze.com 2023-01-13 14:48 出处:网络
I have an SVN repository checked out and have an Eclipse project set up around it. When Eclipse builds it seems to be unsetting the svn:ignore \'*\' inside the output directory and also causing the so

I have an SVN repository checked out and have an Eclipse project set up around it. When Eclipse builds it seems to be unsetting the svn:ignore '*' inside the output directory and also causing the source files to be copied into the output folders. Removing the directory and updating a new one from the repository fixes it until Eclipse builds again but it is annoying to have to do that every time I want to commit.

I have Eclipse set up to ignore .svn directories as described here: http://www.damonkohler.com/2009/07/make-eclipse-ignore-svn-directories.html

Example svn status:

    S   classes
...
?      开发者_StackOverflow classes/dojo/Main$1.class
?       classes/dojo/Main$2.class
!       classes/dojo/Preferences.java
!       classes/dojo/Deck.java
...


The best way to handle this is to install a Eclipse Plugin for SVN usage like subclipse or Subversive.


Are .svn and .svntemp checked in Window->Preferences->Team->Ignored Resources?


Is this like in this thread?

It looks like you use external build process which copies existing .svn folders from the source folders to the corresponding output folders (I think in this way because built-in Eclipse builder ignores team private resources like .svn).
This mean that in order to avoid the problem you should exclude .svn folders from your build process.

0

精彩评论

暂无评论...
验证码 换一张
取 消