Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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

Inactive hide details for Simon Kaegi---01/11/2009 04:24:17 PM---re:class library Routing around I saw this: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

Inactive hide details for John Arthorne---01/11/2009 03:39:37 PM---That's the place. In particular Locker_JavaNio, since LockerJohn 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


GIF image

GIF image

GIF image

GIF image


Back to the top