Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » resources [un]locking
resources [un]locking [message #220908] Fri, 02 April 2004 14:16 Go to next message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

hi-

i have a long-running process which runs a new vm and is more or less
decorrelated from the workbench (expect it outputs to the debug console).

problem is that this process alters the workspace, especially the output
folders (cleaning them then building its own stuff) and i regularly get
errors because target resources seem locked (cannot be deleted).

is there a way to prevent this, or may i be missing something here ?

thanks for your help.

-- gd
Re: resources [un]locking [message #221120 is a reply to message #220908] Fri, 02 April 2004 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

In Windows, you cannot delete a file that another process is reading or
writing. I don't know of any way to prevent this.
--

Gilles Dodinet wrote:
> hi-
>
> i have a long-running process which runs a new vm and is more or less
> decorrelated from the workbench (expect it outputs to the debug console).
>
> problem is that this process alters the workspace, especially the output
> folders (cleaning them then building its own stuff) and i regularly get
> errors because target resources seem locked (cannot be deleted).
>
> is there a way to prevent this, or may i be missing something here ?
>
> thanks for your help.
>
> -- gd
>
Re: resources [un]locking [message #221159 is a reply to message #221120] Fri, 02 April 2004 17:23 Go to previous message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

John Arthorne wrote:
> In Windows, you cannot delete a file that another process is reading or
> writing. I don't know of any way to prevent this.

indeed. thats why id like to know if it is possible to programmatically
prevent eclipse from refreshing while this process has not returned. i
suppose here that this issue is caused by eclispe refreshment feature -
im not sure tho, whats certain however is that this lock is
unpredictible : it may happen, or not, and not always on the same resource.

thanks or your suggestion.

-- gd

> --
>
> Gilles Dodinet wrote:
>
>> hi-
>>
>> i have a long-running process which runs a new vm and is more or less
>> decorrelated from the workbench (expect it outputs to the debug console).
>>
>> problem is that this process alters the workspace, especially the
>> output folders (cleaning them then building its own stuff) and i
>> regularly get errors because target resources seem locked (cannot be
>> deleted).
>>
>> is there a way to prevent this, or may i be missing something here ?
>>
>> thanks for your help.
>>
>> -- gd
>>
>
Previous Topic:Eclipse Visual Editor and Eclipse Vers. 2.1.2
Next Topic:how to show something the first time you run a plugin
Goto Forum:
  


Current Time: Sat Sep 13 16:58:54 EDT 2025

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

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

Back to the top