tags:

views:

1315

answers:

5

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.)

A: 

Which SVN plugin are you using? Subclipse or Subversive? It is not an Eclipse problem per se, but rather it sounds like a problem with the particular eclipse plugin you are using for SVN. It could be that there needs to be a problem report written for that plugin.

James E. Ervin
None! I'm using the Subversion commandline client and TortoiseSVN. I never installed any Subversion plug-in for Eclipse, which to my mind makes it all the more surprising that Eclipse is doing this.
rwallace
A: 

Hmm that is very strange indeed. Goto your plugins directory or look at Help > About Eclipse and check to see which plugins you have installed. Look for something with svn, subversion, or polarion, if they are there then you probably have an issue with that plugin interfering.

If not, I think you could have something going on with your installation of subversion(Tortoise SVN). It would then be very very unlikely Eclipse is causing this issue.

Btw, I have seen miscellaneous issues with not only Eclipse SVN plugin support (I wish the svn plugins were half as good as Eclipse CVS support), but with the command line subversion tools sometimes. It could be an issue with the version of Subversion you are using or something you are doing/not doing with svn. Check to make sure that the property svn:ignore is set correctly. You can do that with svn pl, don't be surprised if the property is not set correctly to ignore bin. Remember the delimiter in that case is not comma, but a new line.

Good Luck

James E. Ervin
I checked both via the About box and via Windows command prompt, and no sign of a plug-in with any of those names. And both the Subversion commandline client and TortoiseSVN confirm that the ignore property is set correctly, and my Subversion setup has worked correctly in all other cases and I haven't done anything unusual with it.I'll keep an eye on it and see if I can pick up any clues to the circumstances under which bin/.svn gets created.
rwallace
+4  A: 

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.

Brian Alexander
This works, provided you spell it .svn/ with the trailing /. Thanks!
rwallace
A: 

Non of the above worked for me, but trashing and re-creating the eclipse project did:

  • Delete your project from eclipse (not from disk).
  • "File"->"New.."->"Project"->"Android Project"
  • in "New Adroid Project"-Dialog selected "create project from existing source" (find your project on HDD)->"Finish"

(as instructed from link)

Rich_thelogicbox
A: 
Gid