Matching a local Eclipse project to a project in Vault

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
dhammond
Posts: 14
Joined: Fri Apr 09, 2004 9:51 am

Matching a local Eclipse project to a project in Vault

Post by dhammond » Wed Oct 07, 2009 8:22 am

I wanted to share something that I discovered this morning, and perhaps make a feature request.

If you have an Eclipse project on your local machine, and the same project in Vault, there is no way (that I know of) to match up the local project to the project in Vault without deleting the local project and importing the one from Vault. This is not necessarily a terrible thing to have to do, but it is annoying and cumbersome, especially for large projects.

Today, I found that I could take the file called ".metadata\.plugins\org.eclipse.core.resources\.projects\web\.indexes\properties.index" for another project and copy it into the project that needs to be matched up, then replace the repository ID in the file with the correct one (from the sgvault database, tblrepositores.uniquerepid). Then I restarted Eclipse and the project was integrated with Vault. Nice.

I am using Eclipse 3.4.2 and Vault 4.1.4.

So, first, is there an established way to do this that I missed? Perhaps something has been added in version 5? If not I think it would be great if the Vault client made it easy to match a local project with a project in Vault.

shannon

Re: Matching a local Eclipse project to a project in Vault

Post by shannon » Wed Oct 07, 2009 10:00 am

You should be able to do this by sharing the project to Vault...if Vault finds the project already exists in the repository, it should just add the source control bindings to your local project.

dhammond
Posts: 14
Joined: Fri Apr 09, 2004 9:51 am

Re: Matching a local Eclipse project to a project in Vault

Post by dhammond » Mon Oct 26, 2009 9:37 am

Thanks! I tried that this morning and it worked, though I could swear that I tried it in earlier versions of the plugin and had it hadn't worked, which is why I have been avoiding it all this time.

shannon

Re: Matching a local Eclipse project to a project in Vault

Post by shannon » Mon Oct 26, 2009 9:45 am

That's very possible. I don't remember if it originally didn't work at all or we just had to tweak it, but I know we fixed it at some point :)

Post Reply