Reputation: 5208
I have two projects in C++ that I need to run and build both in Windows and Linux. We are using Microsoft TFS for source control.
I had managed to configure and build properly the projects in both platforms.
I checked in TFS the .cproject and .project from eclipse, so I can use it in another computer.
Now I am trying to get the projects in another Linux computer and I don't know how to do it.
I tried following this instructions, but I don't have my source code zipped.
Other places like here suggest creating a new project.
Isn't there a way to open an existing project in Eclipse similar to Visual Studio?
Do I have to create a new project? If so, how can I keep the configurations I did to be able to build the project so other developer can use them?
Upvotes: 8
Views: 26676
Reputation: 1053
File > Import... > General > Existing projects into workspace
Don't select an archive file. Set the root directory to where your .project
and .cproject
files are located. Your project should show up in the list. Make sure you don't forget to check the checkbox in front of your project.
Committing eclipse project files to a version control system is perfectly fine as long as you don't use absolute paths in your project settings. Use environment variables to specify paths which differ between developer machines.
Upvotes: 13