Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Need an explanation of workspace locking(How to access the same workspace from multiple computers)
Need an explanation of workspace locking [message #1710852] Fri, 09 October 2015 17:47 Go to next message
Rob Lewis is currently offline Rob LewisFriend
Messages: 16
Registered: December 2014
Junior Member
I would like to keep my Eclipse workspace in Google Drive and access it from multiple computers (not concurrently!). But there seems to be some kind of locking that prevents this.

I would love a clear explanation of how the locking works and how to disable it.
Re: Need an explanation of workspace locking [message #1710872 is a reply to message #1710852] Sat, 10 October 2015 00:59 Go to previous messageGo to next message
Subham Mittal is currently offline Subham MittalFriend
Messages: 1
Registered: October 2015
Junior Member
You can use Dropbox or One drive
Re: Need an explanation of workspace locking [message #1710902 is a reply to message #1710852] Sat, 10 October 2015 15:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Rob,

This question is not specific to JDT. It's not clear what "keep my
Eclipse workspace on Google Drive means". It doesn't sound very
sensible. What might make sense is to keep the workspace projects in
Google Drive (though better you keep them in some version control
system) that to keep the whole workspace in some shared thing...


On 09/10/2015 7:47 PM, Rob Lewis wrote:
> I would like to keep my Eclipse workspace in Google Drive and access
> it from multiple computers (not concurrently!). But there seems to be
> some kind of locking that prevents this.
> I would love a clear explanation of how the locking works and how to
> disable it.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Need an explanation of workspace locking [message #1710947 is a reply to message #1710902] Sun, 11 October 2015 17:03 Go to previous messageGo to next message
Rob Lewis is currently offline Rob LewisFriend
Messages: 16
Registered: December 2014
Junior Member
I realize this is not specific to JDT but I couldn't find a more appropriate place to post it. Please advise.

And I don't understand why putting my workspace on Google Drive doesn't make sense. It's only me who will be accessing it, just from different machines.

I was able to find some discussion of an option called "osgi.locking" in two contexts:
1. as a VM argument: -Dosgi.locking=none
2. in Eclipse's config.ini file: osgi.locking=none

but I can't find a full explanation of exactly what this does, whether it will accomplish my goal, and how using it in these different contexts might conflict or interact.

Is this documented anywhere?
Re: Need an explanation of workspace locking [message #1710969 is a reply to message #1710947] Mon, 12 October 2015 05:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Rob,

Comments below.

On 11/10/2015 7:03 PM, Rob Lewis wrote:
> I realize this is not specific to JDT but I couldn't find a more
> appropriate place to post it. Please advise.
Either eclipse.newcomer or eclipse.platform would seem more appropriate.
> And I don't understand why putting my workspace on Google Drive
> doesn't make sense. It's only me who will be accessing it, just from
> different machines.
As an example, on different machines there may be different JDKs/JREs
installed so any reference to a JRE location that's specific to a
machine will not be sharable.
> I was able to find some discussion of an option called "osgi.locking"
> in two contexts: 1. as a VM argument: -Dosgi.locking=none
> 2. in Eclipse's config.ini file: osgi.locking=none
Given that it's not clear what locking you're referring to with "But
there seems to be some kind of locking that prevents this." it's not
clear that this will help. I know Eclipse creates a
<workspace>/.metadata/.lock file to prevent more than one IDE from
opening the workspace at the same time. If that file can't be opened
for writing (presumable because it's opened and hence locked in another
process, but potentially because write access is not authorized), the
IDE will refuse to open that workspace. That might be the locking to
which you refer and there is no way to circumvent that, other than
ensuring it is possible to open that file for writing.
>
> but I can't find a full explanation of exactly what this does, whether
> it will accomplish my goal, and how using it in these different
> contexts might conflict or interact.
> Is this documented anywhere?
I would suggest a different approach. You can always open a new
workspace, and then you can use, File -> Import... -> General ->
Existing Projects into Workspace. From there you can locate a root
folder (this can be your "workspace" folder on the Google drive). Make
sure that the "Copy projects into workspace" is disabled. This will
link all those projects into the workspace. As such, the actual
projects will be maintained on the Google drive.

I.e., trying to share the workspace is probably doomed to failure, so
best focus on how best to share the projects. Though even the above
seems like a bad idea. Better to properly maintain the projects at
Github or Bitbucket. You could use something like Oomph to automate the
process of extracting those projects into a workspace.

https://wiki.eclipse.org/Eclipse_Oomph_Authoring
https://wiki.eclipse.org/Eclipse_Installer


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Need an explanation of workspace locking [message #1711060 is a reply to message #1710969] Mon, 12 October 2015 15:36 Go to previous message
Rob Lewis is currently offline Rob LewisFriend
Messages: 16
Registered: December 2014
Junior Member
Great tips, thank you!
Previous Topic:SharedASTProvider.getAST(..) cannot resolve bindings for IClassFile but succeeds on ICompilationUnit
Next Topic:"Can not find javasigner" Error message
Goto Forum:
  


Current Time: Mon Sep 23 20:41:59 GMT 2024

Powered by FUDForum. Page generated in 0.05012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top