lock file in metadata remains after shutdown [message #199322] |
Sun, 22 February 2004 11:34  |
Eclipse User |
|
|
|
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 #199780 is a reply to message #199436] |
Mon, 23 February 2004 09:22  |
Eclipse User |
|
|
|
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].
|
|
|
Powered by
FUDForum. Page generated in 0.07064 seconds