Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse svn ignore bin

Tags:

Eclipse project, I have Subversion set to ignore the bin directory, and also within Eclipse I added bin to the list of ignored resources.

However, every now and then Eclipse puts a .svn directory into bin anyway. This doesn't interfere with Subversion checkins (as the Subversion commandline client obeys the standing directive to ignore the entire bin directory) but it does mess up the display in TortoiseSVN.

Is there a known fix or workaround for this?

(Eclipse 3.5, Windows Vista.)

like image 438
rwallace Avatar asked Aug 24 '09 15:08

rwallace


2 Answers

It looks like what is actually happening is that eclipse is copying the .svn directory from your source directories as part of its build -- it thinks it is a "resource" to be copied to your output bin directory. To get it to stop doing that, you can add .svn/ as a filtered resource. In the Properties dialog for your workspace or for your project, go to: Java Compiler | Building and add ".svn" to the list of 'Filtered resources:' under 'Output folder'.

I haven't tried it but I wouldn't be surprised if installing one of the subversion plugins for eclipse also filters the .svn directories for you so anyone with a subversion plugin installed wouldn't notice this problem.

like image 168
Brian Alexander Avatar answered Oct 20 '22 21:10

Brian Alexander


After a long search, starting from this and similar posts I finally fixed this with the help of http://www.damonkohler.com/2009/07/make-eclipse-ignore-svn-directories.html

The source folder pattern that worked for me is slightly different then the one given on the blog however, namely "****/.svn/"** instead of "****/.svn***"

Without the first step, the second step (which has also been mentioned before as a solution) has no effect according to my experience. Thanks Daemon!

The recipe:

1. Project > Properties > Java Build Path For each source folder, edit Excluded to include the pattern "****/.svn/"**

2. Project > Properties > Java Compiler > Building > Enable project specific settings Check the box.

Project > Properties > Java Compiler > Building > Output folder > Filtered resources Add ".svn/" so that it reads "*.launch, .svn/"

like image 41
Gid Avatar answered Oct 20 '22 22:10

Gid