[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-dev] Locking the workspace on the Mac
|
FYI, Linux has the same behavior. Locked can be deleted on the Linux and Mac filesystems.
Tom
Pascal Rapicault ---01/11/2009 09:24:46 PM---BasicLocation#lock() and isLocked() do work on the mac as expected. However what caused the confusion is that despite the name
From: |
Pascal Rapicault <Pascal_Rapicault@xxxxxxxxxx> |
To: |
"General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx> |
Cc: |
"General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx>, eclipse-dev-bounces@xxxxxxxxxxx |
Date: |
01/11/2009 09:24 PM |
Subject: |
Re: [eclipse-dev] Locking the workspace on the Mac |
BasicLocation#lock() and isLocked() do work on the mac as expected. However what caused the confusion is that despite the name of those methods, the file being locked can still be deleted.
To do a good lock, just make sure to use BasicLocation consistently (or directly uses java.nio.channels.FileChannel)
PaScaL
Simon Kaegi---01/11/2009 04:24:17 PM---re:class library Routing around I saw this:
From: |
Simon Kaegi/Ottawa/IBM@IBMCA |
To: |
"General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx> |
Date: |
01/11/2009 04:24 PM |
Subject: |
Re: [eclipse-dev] Locking the workspace on the Mac |
re:class library
Routing around I saw this:
https://issues.apache.org/jira/browse/JCR-933
http://forums.sun.com/thread.jspa?forumID=535&threadID=5303959
I aslo notice that the tests are passing on linux with 1.6.
-Simon
John Arthorne---01/11/2009 03:39:37 PM---That's the place. In particular Locker_JavaNio, since Locker_JavaIo only works on Windows. If that's not working, it sounds lik
From: |
John Arthorne/Ottawa/IBM@IBMCA |
To: |
"General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx> |
Date: |
01/11/2009 03:39 PM |
Subject: |
Re: [eclipse-dev] Locking the workspace on the Mac |
That's the place. In particular Locker_JavaNio, since Locker_JavaIo only works on Windows. If that's not working, it sounds like a bug in the class library because FileChannel#tryLock is supposed to implement cross-process locking. I suggest trying a simple test case with FileChannel#tryLock on Mac to see if it's working.
Pascal Rapicault/Ottawa/IBM@IBMCA
Sent by: eclipse-dev-bounces@xxxxxxxxxxx
01/09/2009 11:21 PM
Please respond to
"General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx> |
|
To | "General development mailing list of the Eclipse project." <eclipse-dev@xxxxxxxxxxx> |
cc | |
Subject | [eclipse-dev] Locking the workspace on the Mac |
|
I'm wondering if someone can point me at the code we use to lock the workspace on the Mac?
I thought this was done using the BasicLocation#lock() method I'm trying to use this in another context and it is failing.
Thx
PaScaL_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev