sudo
sudo

Reputation: 5784

Can I use the same Eclipse workspace simultaneously on two computers?

My friend and I need to use the same Eclipse workspace. I've put it on an AFP server, so we can both mount the volume and use the workspace there. But will that work without problems as long as we are not editing the same file at once? For example, if there are classes Starter and View, could I be editing Starter.java and saving the project while he edits and saves View.java?

I know that Eclipse cannot normally use workspaces on AFP due to a bug. I had to add "-Dosgi.locking=java.io" to the eclipse.ini file to make it work.

Upvotes: 1

Views: 778

Answers (1)

Jose Areas
Jose Areas

Reputation: 719

Yes. But you will need to change its configurations to not lock the workspace. This is the default behaviour.

This is the option:

-Dosgi.locking="none"

Use it in your vmargs or in ini file. I do not need to mention you and your friend need some discipline to not be caught by side effects of this solution.

For example, if both are working in file A, when the first save eclipse will ask if you wish update with system file changes. If you click yes your changes will be lost.

Upvotes: 2

Related Questions