michael nesterenko
michael nesterenko

Reputation: 14439

link source to svn in eclipse

I have svn repository with source code which I want to link (right click Team-Share) to svn in eclipse in order to be able to commit, update etc.

There is a weird problem, when project in eclipse is marked as maven project then svn is linked correctly, it extracts repository url, user name, password etc. But if project is not maven (java project for example) then eclipse for some reason can't find repository url and treats project as new being committed to svn.

How can I link non maven project to svn version control?

Maven Integration for Eclipse (Required)    0.12.1.20110112-1712
org.maven.ide.eclipse.feature.feature.group Sonatype, Inc.

Subclipse (Required)    1.8.3   
org.tigris.subversion.subclipse.feature.group   tigris.org

Subversion Client Adapter (Required)    1.8.0
org.tigris.subversion.clientadapter.feature.feature.group   tigris.org

Subversion JavaHL Native Library Adapter (Required) 1.7.1.1
org.tigris.subversion.clientadapter.javahl.feature.feature.group    tigris.org

UPD root of the problem is found. This is due to using linked source directories. When eclipse project is placed outside svn working tree, eclipse can not extract svn parameters (repository url etc...), but when eclipse project is placed in svn working tree team feature works flawlessly.

Upvotes: 0

Views: 3104

Answers (2)

michael nesterenko
michael nesterenko

Reputation: 14439

Such weird behaviour is due to using linked source directories. When eclipse project is placed outside svn working tree, eclipse can not extract svn parameters (repository url etc...), but when eclipse project is placed in svn working tree team feature works flawlessly.

Upvotes: 1

Aaron Digulla
Aaron Digulla

Reputation: 328594

This should work but sometimes, Eclipse "forgets" the sharing information.

The solution is to share it again. Eclipse will read the existing repo info and use that (instead of creating a new repo).

If in doubt, make a backup of the project folder, first; SVN doesn't store any project-specific information outside of the project folders, so restoring from the backup will get you exactly what you had before.

Upvotes: 0

Related Questions