Ant is not able to delete some files on windows

后端 未结 14 2399
我寻月下人不归
我寻月下人不归 2021-02-07 01:36

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 generate

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 02:19

    You don't say if your build is run as the currently logged on user. If not, the fact that explorer.exe or other process has the directory shown can cause it to be locked as well. But deleting it in that same explorer.exe process would succeed. Try Unlocker from http://ccollomb.free.fr/unlocker/ to see what processes have the files/directories locked.

提交回复
热议问题