Eclipse "Share Project" by hand?
Asked Answered
S

3

6

What actually happens to the file system when you do a Subclipse Share Project on an Eclipse project that was externally checked out from Subversion? All the .svn folders are already in place. I get an error when I try to Share Project the right way, and I'd rather not delete and re-checkout the projects from the SVN Repository browser.

Samal answered 4/9, 2008 at 20:54 Comment(0)
R
12

Dunno exactly what happens within eclipse, I presume it does some funky stuff in the .metadata directory of the workspace. That said, I would recommend the following to get eclipse to learn about the svn settings of the project:

  • Delete the project from the workspace (keep "Delete project contents on disk" unchecked)
  • File > Import... > General > Existing Projects into Workspace
  • Browse to the folder containing the original project(s) of interest
  • Import the projects into your workspace

This seems to have the side effect of subclipse noticing the subversion settings when importing the "new" projects into your workspace.

Rectory answered 6/9, 2008 at 0:20 Comment(0)
C
2

The Share Project action is intended to commit the first version of a project, i.e. one with no .svn metadata in place. It will get upset if it sees .svn directories already there. As Rob wrote, the way to get that checked-out project into Eclipse is to use the import capability.

Calcicole answered 17/9, 2008 at 22:48 Comment(1)
Share Project usually also works when .svn/.git and simply adds the Share features, reusing the existing versioning.Smegma
C
1

I'm not sure what version of Eclipse you are using or whether this will apply since I'm using Subversive instead of Subclipse. When I use the share project feature to commit the project into svn when I already have all of the .svn directories in place, I get a choice of like "Use current project settings" and then eclipse automatically reattaches the project svn information to the team integration. You can screw it up if you try to enter different information.

Cinematography answered 24/9, 2008 at 17:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.