Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » lock file in metadata remains after shutdown
lock file in metadata remains after shutdown [message #199322] Sun, 22 February 2004 11:34 Go to next message
Eclipse UserFriend
I'm wondering if this is a simply "bug", or a change in design.

I have some automatic programs used to "test the workbench" each of which
are invoked, one after the other, in a .bat file.

I used to have some logic in there so that one test wouldn't start until
the last one ended, and it detected that one had ended by the fact that the
lock file was "gone".

It seems for several milestones, at least, the lock file is always there.

I guess Eclipse itself somehow knows to look at date/time stamp ... or is
there now some other "lock file" that prevents two workbenchs starting on
the same workspace?

Thanks
Re: lock file in metadata remains after shutdown [message #199390 is a reply to message #199322] Sun, 22 February 2004 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dj_houghton.nospam.ca.ibm.com

The code has changed in the 3.0 stream to use the FileLock class
available in JDK 1.4 and therefore existance of the file is not checked,
it is whether or not you can create an exclusive file lock on the file.

David Williams wrote:
>
> I'm wondering if this is a simply "bug", or a change in design.
>
> I have some automatic programs used to "test the workbench" each of
> which are invoked, one after the other, in a .bat file.
>
> I used to have some logic in there so that one test wouldn't start until
> the last one ended, and it detected that one had ended by the fact that
> the lock file was "gone".
>
> It seems for several milestones, at least, the lock file is always there.
>
> I guess Eclipse itself somehow knows to look at date/time stamp ... or
> is there now some other "lock file" that prevents two workbenchs
> starting on the same workspace?
>
> Thanks
>
Re: lock file in metadata remains after shutdown [message #199436 is a reply to message #199390] Sun, 22 February 2004 16:13 Go to previous messageGo to next message
Eclipse UserFriend
On Sun, 22 Feb 2004 15:16:38 -0500, DJ Houghton
<dj_houghton@nospam.ca.ibm.com> wrote:

> The code has changed in the 3.0 stream to use the FileLock class
> available in JDK 1.4 and therefore existance of the file is not checked,
> it is whether or not you can create an exclusive file lock on the file.
>

Ok, thanks, that's very helpful.

Pardon my lack of Windows knowledge, if this is in fact common knowledge
.... but is there an easy why to tell from a .bat file if a file is locked?
[I can see in your code how to do it from Java, but would prefer not to
start a VM just to determine if its locked].
Re: lock file in metadata remains after shutdown [message #199780 is a reply to message #199436] Mon, 23 February 2004 09:22 Go to previous message
Eclipse UserFriend
Originally posted by: dj_houghton.nospam.ca.ibm.com

Sorry, I don't know.

David Williams wrote:

> On Sun, 22 Feb 2004 15:16:38 -0500, DJ Houghton
> <dj_houghton@nospam.ca.ibm.com> wrote:
>
>> The code has changed in the 3.0 stream to use the FileLock class
>> available in JDK 1.4 and therefore existance of the file is not
>> checked, it is whether or not you can create an exclusive file lock on
>> the file.
>>
>
> Ok, thanks, that's very helpful.
>
> Pardon my lack of Windows knowledge, if this is in fact common knowledge
> ... but is there an easy why to tell from a .bat file if a file is
> locked? [I can see in your code how to do it from Java, but would prefer
> not to start a VM just to determine if its locked].
Previous Topic:Re: [eclipse-dev] hand over system properties ( java -Dx=y ) to e clipse exe?
Next Topic:Reading XML api
Goto Forum:
  


Current Time: Tue Apr 29 01:31:01 EDT 2025

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

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

Back to the top