Putting Eclipse-like workspace under RTC source control
Hello everybody,
I'm pretty new to RTC in general, so please bear with me :)
I have various projects developed in an IDE based on Eclipse(but not Eclipse itself), which I have put under RTC version control. A simplified version of the situation is as follows:
COMPONENT1
eclipse_project1.1
eclipse_project1.2
COMPONENT2
eclipse_project2.1
eclipse_project2.2
The idea we are following is to create a workspace associated to every RTC component, so that when a developer wants to work on the component he/she just has to checkout the component and open the corresponding folder as an Eclipse workspace.
But.... by doing so all the metadata associated to the workspace has ended up on RTC source control as well, and i am already starting to see the problem with this:
1) every time i open the workspace, some of the metadata is updated, adding noise to the changes detected
2) when another developer opens it..... there are conflicts on that metadata
What do i have to change? Should i just put some of the metadata under the ignore list and i'm set? Or is this approach inherently wrong?
Thanks in advance!
3 answers
Comments
Hello Arun, thanks for your answer :)
What you mean with 1) is that every different user should set up a local eclipse workspace? In other words, you suggest the following workflow?
1) User A creates the eclipse workspace he wants to track in RTC
2) User A uploads the projects in RTC, EXCLUDING workspace metadata (ignoring completely the .metadata folder)
3) User B wants to start working on that workspace and creates an EMPTY workspace on his/her machine
4) User B checks out the projects from RTC
5) User B imports the projects in his/her local workspace using Eclipse's "Import from file system" feature.
Is there not any way to share the workspace's metadata (i.e. versioning only a subset of the metadata which doesn't change every time and can then safely be versioned?)
I think you hinted on the answer yourself.. you would ignore the Eclipse project related metadata files. This would create an ignore file (called .jazzignore) that you would want to check-in and deliver. It sounds like you don't want these files under source control... so I would delete them, and deliver the change set to the rest of the team (to clean up the repo), then create and deliver the ignore file.
Comments
Hello Geoffrey, and thanks for the answer!
To keep things simple and easy, yes, there should be a 1-1 relationship between a repository workspace, a sandbox, and an Eclipse workspace.