Ant 无法删除 Windows 上的某些文件 [英] Ant is not able to delete some files on windows

查看:23
本文介绍了Ant 无法删除 Windows 上的某些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 ant 构建,它可以创建目录、调用 javac 和所有常规内容.我遇到的问题是,当我尝试清理(删除所有生成的内容)时,删除任务报告无法删除某些文件.当我尝试手动删除它们时,它工作得很好.这些文件显然没有被任何其他进程打开,但 ant 仍然无法删除它们.我能做什么?

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?

推荐答案

这个问题我遇到过一次.这是因为我试图删除的文件是另一个任务的类路径的一部分.

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

这篇关于Ant 无法删除 Windows 上的某些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆