Just a bit of grasping at straws here... I'll assume that you do not have the file open in some other application.
The only other thing I notice is that the file it failed on is not named in 8.3 format. Not sure if it matters....perhaps just a coincidence? > -----Original Message----- > From: Dmitri G. Chtchekine [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 5:57 PM > To: Ant Users List > Subject: DELETE exception > > I get exception trying to delete some files (OS is Windows NT). > Strangely some files get deleted, and on some ant failes. > All files have same permissions. > Here is the code: > <delete file="${build.dir}\${package.root.dcmtools}\Certifier.ini"/> > <delete file="${build.dir}\${package.root.dcmtools}\BulkLoad.ini"/> > <delete file="${build.dir}\${package.root.dcmtools}\MainMenu.ini"/> > <delete > file="${build.dir}\${package.root.dcmtools}\ProductDelete.ini"/> > <delete file="${build.dir}\${package.root.dcmtools}\Reports.ini"/> > > Here is output: > > [delete] Deleting: > C:\java\buildclasses\dcmtools\Certifier.ini > [delete] Deleting: > C:\java\buildclasses\dcmtools\BulkLoad.ini > [delete] Deleting: > C:\java\buildclasses\dcmtools\MainMenu.ini > [delete] Deleting: > C:\java\buildclasses\dcmtools\ProductDelete.ini > > BUILD FAILED > > d:\ant\buildpii.xml:726: Unable to delete file > C:\java\buildclasses\dcmtools\ProductDelete.ini > at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:267) > at org.apache.tools.ant.Task.perform(Task.java:217) > at org.apache.tools.ant.Target.execute(Target.java:164) > at org.apache.tools.ant.Target.performTasks(Target.java:182) > at org.apache.tools.ant.Project.executeTarget(Project.java:601) > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) > at > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120) > at org.apache.tools.ant.Task.perform(Task.java:217) > at org.apache.tools.ant.Target.execute(Target.java:164) > at org.apache.tools.ant.Target.performTasks(Target.java:182) > at org.apache.tools.ant.Project.executeTarget(Project.java:601) > at org.apache.tools.ant.Project.executeTargets(Project.java:560) > at org.apache.tools.ant.Main.runBuild(Main.java:454) > at org.apache.tools.ant.Main.start(Main.java:153) > at org.apache.tools.ant.Main.main(Main.java:176) > > > TIA! > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>