Eclipse will not delete files

I have an ivt ANT project with libs (they are under lib_managed). Eclipse uses banks. Probelm: if I try to update the ANT directory, it does not want to delete it, because eclipse clings to banks in its path to the classes. Even if I update the (empty) eclipse of the classpath, I cannot delete the files. If someone had the same problem and found a solution, I would be grateful for the answer.

Regards, Yang

+1
source share
3 answers

Not a solution, but a workaround. I often delay Eclipse locking on files in different contexts. I suggest using Unlocker .

+3
source

I think this is on Windows. Use Process Explorer to find out who blocks files. Eclipse should not block; perhaps you have code running in the debugger (hanging at a breakpoint). Use the list of open files and properties to find out which Java program keeps file locking.

If this is indeed Eclipse, try upgrading to a newer version of Eclipse or closing the project when you need to update dependencies using ivy.

+1
source

Clearing the workspace and restarting eclipse may solve the problem. But in a real development environment, I don't think it is a good idea to restart eclipse whenever you need to build a jar.

-2
source

Source: https://habr.com/ru/post/1484685/


All Articles