Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Eclipse trying to copy my .svn folders from src to bin, and how can I make it stop?

I have checked out a bunch of java code using subversion 1.6 and then I imported those projects into eclipse. Subclipse 1.6 picked up the fact that the plugins are under version control, except for a few folders.

I now get a bunch of errors like:

The resource is a duplicate of src/.svn/all-wcprops and was not copied to the output folder

If I delete the project (from eclipse not on disk) and reimport it, that fixes the problem about half the time. But since I have dozens of projects that are having this problem, it means reimporting them 10-20 times before I get them all working. This is very painful, and I am tired of doing it every time someone adds a new plugin to svn or when I need to recreate a workspace for some reason.

Is there an easier way to fix this than delete and reimport? Or is there a way to prevent this problem in the first place?

like image 952
Jeremy Avatar asked Nov 10 '09 17:11

Jeremy


People also ask

What is bin folder in eclipse?

Whenever you make a project inside of Eclipse, Eclipse will auto-magically create a new folder in your workspace with the same name. Inside of that folder it will create two folders: bin, and src (source). The bin folder can be ignored. This is nothing more than the folder in which Eclipse stores the .

Where is .SVN folder?

- the only . svn folder is in the root folder now, and this contains all of the info for the checkout. You should now be able to simply copy the folder and check it in.


2 Answers

Add the .svn folder to the Excluded list for your Source Folder.

  • Project->Properties
  • Java Build Path
  • Source tab
  • Select 'Excluded'
  • click
  • Click next to the Exclusion patterns section on the bottom
  • Add the .svn folder and any others that do not need to be copied to the output directory
like image 55
Kelly S. French Avatar answered Sep 17 '22 01:09

Kelly S. French


Follow the procedure described by Kelly but define the exclusion pattern as **/.svn/*. This will recursively exclude all .svn directories from the various source folders.

like image 29
Vladimir Avatar answered Sep 20 '22 01:09

Vladimir