[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-dev] Locking files across processes
|
On linux, with JDK 1.3 eclipse can't
lock.
An approach would be to use sockets.
If you ever implement this, please share
here.
PaScaL
"Jain, Amit"
<amit.jain@xxxxxxx>
Sent by: platform-dev-bounces@xxxxxxxxxxx
12/07/2005 04:20 AM
Please respond to
"Eclipse platform general developers list." |
|
To
| <platform-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| [platform-dev] Locking files
across processes |
|
Hi,
Eclipse disallows access to the same workspace
from more than one instance of the eclipse framework simultaneously.
In Windows this is done by creating the .lock file in the eclipse workspace(in
.metadata folder).
How is it done for linux platform? The file
locking mechanism(having open file stream) does not work in linux.
In JDK 1.4* locking of files can be done by using FileChannels but this
is not possible in JDK1.3.
We want a similar solution for one of our
plugins but on JDK1.3.
It would be great if someone could point to
how it is done in Eclipse for Linux.
Regards,
Amit. _______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-dev