Linked src folders in Eclipse project and SVN issue

2.4k Views Asked by At

I have an eclipse project set up that is NOT directly placed inside an SVN checkout tree - instead I use 'link src' option in eclipse to set up my project. Thoughts went behind this approach are primarily geared towards keeping the SVN checkout tree free from all the clutter that Eclipse (and any running plugins) would make when creating a project directly pointing to a parent svn tree structure. The problem I have with this approach is that subclipse is failing to read-in .svn info from 'linked src' folders therefore features such as compare / history are not available for any of these linked resources. Question is is there a work around? If not is there a better approach?

2

There are 2 best solutions below

3
Gorkem Ercan On

Why don't you use svn ignore to keep the clutter away from your svn tree? See Subclipse svn:ignore

1
Mark Phippard On

Subclipse follows the strategy for being "link friendly" in the Eclipse documentation, which namely means that we automatically ignore linked resources. See:

http://help.eclipse.org/juno/topic/org.eclipse.platform.doc.isv/guide/team_resources_linked.htm

Subclipse relies on Subversion API for all operations and Subversion works with the file system. It has no knowledge of Eclipse-specific functionality like linked resources, so it can only follow the normal semantics of a Subversion working copy. It could never see the existence of these resources as part of a working copy.

Subclipse requires the project root is a working copy and then whatever else is included or ignored is based on the Subversion features you use.