[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Shared workspace between Windows and Linux

Mareq wrote:
Hello.

On my computer I have both Linux (Ubuntu Edgy) and Windows (XP) installed. I am developing the same project on both OSs, switching to the one on which I need to test the project (it is CDT project, not Java).

The project is stored in CVS also.

Now I use this schema:
1. I have two workspaces - one on Linux partition and second on Windows partition.
2. When I need to update changes to the second OS, firs I commit changes from first OS to CVS, restart machine to second OS, update changes from CVS, continue working.


On both platforms I have the same Eclipse and CDT version.

Question:
I created new FAT32 partition, that is accessible for RW from both OSs.
Is it possible to have the workspace directory on this new partition and use it from both operating systems (without need of commit to/update from CVS between each OS switching)?
Would there be no problems?

In theory it can work, but there are some things that could trip you up. Most importantly, you'll have to work to keep any absolute file/directory paths out of your workspace. This is possible, but requires attention to what you are doing. For example, you can't link to Javadoc or source that is outside the workspace, and you must use Classpath Variables whenever you want to include a JAR that is not in the workspace.


If you want to post the .classpath file for your project(s) we can easily see if you need to adjust anything.

Also keep in mind that a workspace is designed to be specific to a particular machine and installation of Eclipse. By sharing one across two OSs, that is much like trying to share a workspace across two different machines which almost never works out correctly.

Hope this helps,
	Eric