Skip to content
Advertisement

Ant is not able to delete some files on windows

I have an ant build that makes directories, calls javac and all the regular stuff. The issue I am having is that when I try to do a clean (delete all the stuff that was generated) the delete task reports that is was unable to delete some files. When I try to delete them manually it works just fine. The files are apparently not open by any other process but ant still does not manage to delete them. What can I do?

Advertisement

Answer

I encountered this problem once. It was because the file i tried to delete was a part of a classpath for another task.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement