Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing an Eclipse workspace between Linux and Windows

I've come to use Eclipse to develop for Android on my Windows machine for quite some time now, but more and more I've been booting up into my Ubuntu partition. I honestly love both operating systems as they both have their pros and cons, but I boot into each one randomly. Anyway, I have three partitions on my hard drive. One for Windows 8, one for Ubuntu, and one for shared data (docs, pics, videos). But I would like to seamlessly develop on one OS and then on the other. So, my data partition should be able to hold my workspace, but I don't know if that will ruin or corrupt the .metadata and potentially ruin my projects. Basically my question is... are there any tips or tricks with the Android SDK, AVD, ADT, workspace, or .metadata when using them between two OS's so that it works seamlessly?

like image 387
EGHDK Avatar asked Nov 02 '12 04:11

EGHDK


People also ask

Can we share workspace in Eclipse?

If you have a project in your Eclipse workspace that you want to share, use the Share Project wizard to put the project under Engineering Workflow Management source control and make it part of a component in a repository workspace.

What is the difference between workspace and project in Eclipse?

In a workspace you define projects that reference your disk resources. You don't have to move source files into the workspace. And projects don't import or copy source files into the workspace. Instead projects point to any folder or files on your disk.


1 Answers

In theory, you can use two different installations of Eclipse to manage one shared workspace. However, you could potentially run into problems if you aren't running exactly the same version on both sides (or, if you upgrade one side but not the other).

In practice, you are probably better off having separate workspaces on each OS, and then having a shared repository (using Git, for example) to share your code. Not only will that work better, but you'll be using source control too.

like image 184
Greg Hewgill Avatar answered Nov 01 '22 13:11

Greg Hewgill